How to process double click on rows of data displayed on html page?

I need to display rows of data so that user could double click on a particular row to get more details.
What I could think of doing is to embed an applet with a JTable that could easily process double click event. But the issues I have are:-
1. I am not able to pass the data (the jsp got from processing some javabeans) to be displayed on the applet's table. It seems the applet needs to get loaded on the user's browser first and then the applet could ask the server (servlet / jsp) to send the data.
Is there any way to provide data to applet other than html's parameter/value pairs?
2. As per design, this applet should be used only to display the content. Double click on a row would only open a browser window to display the entire details of the data; there should not be any interaction with the server.
Is there a better, more elegant way of doing this?
Thanks.

I posted a thread on Applet servlet communication here:
http://forum.java.sun.com/thread.jsp?forum=33&thread=205887
It uses the ObjectOutput/InputStream so you can send serializable objects rather than just text.
Cheers,
Anthony

Similar Messages

  • List processing double click event

    How to catch double click on list processing line?

    For ALV:
      fs_event-name = 'USER_COMMAND'.
      fs_event-form = 'USER_COMMAND'.
      APPEND fs_event TO t_event.
      CLEAR fs_event.
      fs_event-name = 'PF_STATUS_SET'.
      fs_event-form = 'USER_COMMAND1'.
      APPEND fs_event TO t_event.
      CLEAR fs_event.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
       EXPORTING
    *   I_INTERFACE_CHECK                 = ' '
    *   I_BYPASSING_BUFFER                =
    *   I_BUFFER_ACTIVE                   =
         i_callback_program                = sy-cprog
    *   I_CALLBACK_PF_STATUS_SET          = ' '
    *     i_callback_user_command           = 'USER_COMMAND'
    *   I_CALLBACK_TOP_OF_PAGE            = ' '
    *   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *   I_CALLBACK_HTML_END_OF_LIST       = ' '
    *   I_STRUCTURE_NAME                  =
    *   I_BACKGROUND_ID                   = ' '
    *   I_GRID_TITLE                      =
    *   I_GRID_SETTINGS                   =
         is_layout_lvc                     = fs_layo
         it_fieldcat_lvc                   = t_fcat
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS_LVC             =
    *   IT_SORT_LVC                       =
    *   IT_FILTER_LVC                     =
    *   IT_HYPERLINK                      =
    *   IS_SEL_HIDE                       =
    *   I_DEFAULT                         = 'X'
    *   I_SAVE                            = ' '
    *   IS_VARIANT                        =
         it_events                         = t_event
    *   IT_EVENT_EXIT                     =
    *   IS_PRINT_LVC                      =
    *   IS_REPREP_ID_LVC                  =
    *   I_SCREEN_START_COLUMN             = 0
    *   I_SCREEN_START_LINE               = 0
    *   I_SCREEN_END_COLUMN               = 0
    *   I_SCREEN_END_LINE                 = 0
    *   IT_EXCEPT_QINFO_LVC               =
    *   I_HTML_HEIGHT_TOP                 =
    *   I_HTML_HEIGHT_END                 =
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER           =
    *   ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = t_obs_unq_fms
       EXCEPTIONS
         program_error                     = 1
         OTHERS                            = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *Dynamic Subroutine.....................
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&IC1'.        " Click
             rs_selfield-tabindex.       " Row number where double clicked
      ENDCASE.
    ENDFORM.                    "USER_COMMAND
    For SImple List :
    Use AT LINE-SELECTION event.
    Sy-LILLI will give you selected line no
    SY-LISEL value of selected line.
    If you are using custom pf-status mention PICK in PF-STATUS.
    Regards,
    Gurpreet

  • How to handle double click on af:table ?

    ..... I use JDev 11g .......
    I have an af:table I want when I double click on row in this table I execute a method in backing bean.
    ( I know there is a selectionListener in table but this for single click I want a method call only if I double click on the table )
    How can I do that?
    Thank You...
    Sameh Nassar

    You may use this method.
    1. Register a client listener on the table:
    <af:clientListener type="dblClick" method="doDbClick"/>
    The method doDbClick is a javascript function:
    <trh:script>function doDbClick(event) { 
    var source = event.getSource();
    AdfCustomEvent.queue(source,"doDbClick", {}, false);
    </trh:script>
    2. Register a server listener on the table to consume this custom event:
    <af:serverListener type="doDbClick" method="#{backingBeanScope.txnBean4.doDbClick}"/>
    The java method:
    public void doDbClick(ClientEvent event){
    // do whatever u want
    Colin

  • How to have double click on trackpad in Lion?

    I am not sure how to enable double click on trackpad in apple as i am used to?

    In the Trackpad option of System Preferences, just select Secondary click in the Point & Click panel, then you have choice between different options.

  • How to avoid double-click to click-box

    Hello,
    until now I did not find a solution for this problem:
    I have created a training course for a specific application, and in this coure are some click boxes on which the user should click. On many click boxes should the user click only once but if he double-click the click box, in real application nothing happens. There is only one way to succes the action - one click. But in captivate when the user double-click the click box instead of one click it evaluate as success action (the click box is set only to one click, double-click checkbox is not checked).
    So my question is, is there any way how to avoid double-click in cases where the user should click only once? Or in case he double-click the click box to show failure caption?
    Many thanks.
    Lukas

    Hi all
    Interesting thread. Unfortunately, what would be needed here is some sort of a widget that would run some internal timer. Sure, you can try multiple Click Boxes and configure one with a Single Click and one with a Double Click. But the problem with that (as I see it) is regardless of what you might try, the Single Click will win out every time. Thus you would need a widget of some sort that would "listen" for a Double Click and respond appropriately.
    Tough call... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML   Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How to handle double click in a table control?

    Hi,
    Can any one let me how to handle double click event in a table control in dialog programming?
    here i need to navigate to another screen when user double click on the table contols (emp number column).
    thanks in advance,
    PrasadBabu.

    to define double click in your table controlwhich is similar to 'PICK' function. Enable F2 in PF-status for this
    Table Control Question
    Check the above thread which was posted recently on SDN, please award points if found helpful

  • How to handle double click event in a text control

    Hi,
       Will u please send me information on handling double click events inside text control and also about locking and unlocking of DB tables for updation.
    Regards,
    Praba.

    Hi Prabhavathi,
    Here is how you handle double click events in Textedit control.
    1)Create a custom control in screen (say TEXT_CONTROL)
    2)In main program,
    a) Declarations:
    data: obj type ref to cl_gui_custiom_control.
          text type ref to cl_gui_textedit.
    b) Create the instance of custom container
    c) Create the instance of textedit control.
    3)Now to handle double click events , create a local class as follows.
    class shail_event definition.
    public section.
    methods:
    handle_doubleclick for event dblclick of cl_gui_textedit .
    endclass.
    class shail_event implementation.
    method handle_doubleclick .
    here do the coding for handling the double click.
    endmethod.
    endclass.
    4) Create an instance of the handler class(ie.ZSHAIL_EVENT).Let it be named hand.
    5) Define varibles for event.
    DATA: i_events TYPE cntl_simple_events,
          wa_events TYPE cntl_simple_event.
    SET HANDLER hand->handle_doubleclick for text.
    wa_events-eventid = cl_gui_textedit=>event_double_click.
    wa_events-appl_event = 'X'. "This is an application event
    APPEND wa_events TO i_events.
    6)
        CALL METHOD texte->set_registered_events
          EXPORTING
            events                    = i_events
          EXCEPTIONS
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3
            OTHERS                    = 4.
        IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    These are the basic steps needed for handling events in Textedit control.You can go to SE24 and type CL_GUI_TEXTEDIT to find the associated events of the class.
    If you want the program, kindly send your mail-id so that I can mail it to you.
    Regards,
    Sylendra.

  • How do I double-click with a track-pad?

    I'm new to Mac, and I just bought a beautiful new Apple MacBook laptop. I'm trying to install academic version of Adobe Photoshop 6 (this disk of software was originally made for PCs but I hear it's possible to make it work on a MacBook as well. My question is, how do I double-click with a track-pad, like in order to install new software from actual disks? I'm a multi-media artist and student, among other things. Thanks!
    Apple MacBook   Mac OS X (10.4.4)  

    Hi -
    Double clicking is done by going to System Preferences/Keyboar and Mouse/Trackpad and then selecting the action you'd like.
    However, PS 6 will be more of a task!
    If it's a Windows disc then you'll need to install a Windows XP on your Macbook either through Parallels or Bootcamp.
    Perhaps another 'Mac Friendly' graphics program might be more suiting if you'd like to stick in with the Mac OS X enviornment. Check out these apps....
    http://pure-mac.com/graph.html
    btw, Bootcamp is free!
    Macbook 1.8-)   Mac OS X (10.4.8)   Week 38 base model w/1G Ram

  • Double clicking on an Icon to display a frame....

    Hi! I have an icon whereby when double clicked on should display a frame. To display the icon, I have it as an ImageIcon placed on a label, which works fine. But my problem now is what kind of listener can I add to this label, if any that will cause this frame to be displayed? OR if you have an idea of going about or around this, I'll really appreciate it!! Thanks a lot in advance!!
    Cheers,
    Bolo

    Thanks a lot again Radish! It worked fine. I got another question, which I hope you'll be willing to answer. Hope I'm not being a pain in the butt?
    After the user double clicks on an icon to display a window(step by step wizard), the panel on the frame contains "back" and "next" buttons. And of course the button on the last panel will say finish instead of next. All of this is working fine. My problem is that whenever I re-launch the wizard, it displays the last panel which contains the finish button instead of the first panel. Do you have any ideas of how I can fix this? Thanks a lot in advance!!
    Cheers,
    Bolo

  • How to loop through a single row of data?

    What I'm trying to do is use a cursor to loop through a clob. When I create my cursor I get the an error telling me that the table does not exist. Which implies that I have an implicit cursor. Is there a way to get around this?

    > How to loop through a single row of data?
    By not looping as there is only a single row?
    > What I'm trying to do is use a cursor to loop through a clob
    Processing (looping through) a CLOB has nothing to do with a cursor.
    > When I create my cursor I get the an error telling me that the table does
    not exist. Which implies that I have an implicit cursor.
    Incorrect. It simply means that
    a) you do not have permissions to access that table from within the current context
    b) it does not exist (e.g. you have misspelled the object name, you have not qualified it properly within the current scope, etc)

  • How to open an Applet from a text link in a HTML Page

    Hi There
    How to open an Applet from a text link
    in a HTML page
    For example I have a HyperLink "Open Applet"
    When a user clicks that link i want to open a
    Applet in a AWT Window.
    How can i do this
    Will any one help me?
    -Ramya

    u can use javascript for that
    <SCRIPT language="javascript">
    function loadAppNow() {
    document.write("<APPLET ......></APPLET>")
    </SCRIPT>
    LoadApplet
    this will overwrite the applet on current window
    There are many good ways other than document.write to open in same window. I don't remember the syntax right now.
    Plz. refer to javascript tutorial for that.
    even you can insert the applet while retaining previous contents. its quite easy actually.
    regards....bhart

  • When links are clicked, they do not fully display the NEW page until the mouse is moved.I know it is a current bug, and appears in no other browsers that I know of.

    It was pointed out that my links do not function correctly on Firefox on a Windows platform. When links are clicked, they do not fully display the NEW page until the mouse is moved! I have now observed it for myself on my fathers PC running Windows XP on Firefox.My PC is on Windows7
    It is the 5 version of Firefox, so I know it is a current bug, and appears in no other browsers that I know of.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4+ you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • The session getattributes lost one row of data in the html input table

    Deal all,
    I have input three rows of data in a html table. But I found
    the last row will disappear and lost when it return the data to
    backend. I think that maybe caused there is an error checking which
    prompts an error and after that , I change the value of the last(3rd)
    row and try to save it. The last row disappear in the UI and being not
    sent to the back end. Here is my code of the JSP
    RosterCodeSetupCommand rosterCodeSetupCommand =
    (RosterCodeSetupCommand)request.getSession().getAttribute("rosterCodeSetupCommand");
    int cmd = rosterCodeSetupCommand.getCmd();
    int pageNo = rosterCodeSetupCommand.getPageNo();
    EtWorkTime etWorkTime = rosterCodeSetupCommand.getEtWorkTime();
    List policyList = rosterCodeSetupCommand.getPolicyList();
    As you can see, the EtWorkTime is get from the rosterCodeSetupCommand.
    Usually, the rosterCodeSetupCommand will have all the rows in the
    table. But now in EtWorkTime, I found last row data is lost.
    And in the UI, when I press Save, the last row is disappear. So I
    guess the problem is happened in
    request.getSession().getAttribute("rosterCodeSetupCommand"); But I
    can't figure out what can make the last row lost in this sentence.
    Would you mind to give me some hints on what will make this happen and
    I will try to trace the code by myself. Thanks.

    Hi,
    I am not sure are you using spring framework or what. if yes you can populate data in command object in referenceData method of simpleformcontroller and that data will be available to the UI.

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

Maybe you are looking for

  • How to make Hierarkchy variable in BW 3.5?

    Dear collegues, I have five profit center hierarchies that I want to create identical reports on. The user should be able to first choose which hierarchy he wants to see, and then the node of the chosen hierarchy. Is this possible? Can anyone explain

  • User type

    Hi Experts, What are the new user type in B1 8.8 ? Andres

  • How Do I Uninstall Flash Player From My Mac?

    I can't install the correct flash player version on my macbook until I uninstall the incorrect version. How do I uninstall it?

  • AirPort Auto Connection Fix

    I figured this may help some of those who have been experiencing AirPort autoconnection issues (waking from sleep or reboot): 1. Go to Finder > Macintosh HD > Library > Preferences 2. Pull SystemConfiguration folder onto the desktop 3. Restart 4. Go

  • How to work on FGA auditing and provide me some steps to work on?

    How to work on FGA auditing and provide me some steps to work on?