Detecting single and double click on row click

Hello All,
I am using jdev 11.1.1.6
I have a table displayed like below,
                                 <af:table value="#{pageFlowScope.Bean.List}" var="temp"
                                  rows="1500" rowBandingInterval="0" >                                  
                                      <af:column id="dc_c1" align="center" clientComponent="true" headerText="Heade1" >
                                       <af:outputText value="#{temp.value1}" escape="false"
                                                      id="dc_ot1"/>
                                      </af:column>
                                  </af:table>
I want to detect
- single click on a row
- double click on a row
How can i achieve it ?

Hi,
You need the combination of a client listener, a Javascript function and a server listener.
Frank Nimphius has provided a comprehensive example here.
Kevin

Similar Messages

  • Programming button for single and double click

    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.

    Nick76 wrote:
    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    Do not change the highligh and it will look like nothing is happening (make sure auto activate is not beign used)
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.
    Single and Double clicks cannot be done like that. (Some players using layered menus do require a click to get things seen but not really what you are speaking about.)
    Flash or Director may be better for this?

  • Doubt - mouse double click invokes both single and double click

    Hi Friends,
    I added mouse listener to a java component. In the mouseClicked() method, I have implementation for both mouse single and double click. When I try to double click that component it invokes the single click method first and the it invokes the double click method. My problem is when I try to double click that component it should invoke my double click method alone not single click too.
    I'd be very grateful if someone can help me.
    Thanks and Regards,
    Sangeetha J

    Your problem: a double click is two single clicks. The first click will always fire a single-click event. How's the computer supposed to know that another click is to follow?
    All I think you could do is to instantiate a timer in the one-click method, set to whatever amount of time you think a double-click should take. If you get a second event while the timer's still active, it was a double-click and you can stop the timer and do the double-click action. Otherwise your timer should execute the single-click action after it timed out.
    But this will make your GUI look like it's responding slowly to single-clicks.

  • ITunes inconsistent about single and double clicks

    When I'm in Albums view mode, sometimes a single click expands the tracklisting of an album (like I want it to) sometimes it acts as a double click and begins play. This is incredibly frustrating when I'm trying to multi-select albums (ctrl + single-click), and a new album begins playing. The mouse is working consistently for other programs, so I don't believe there's a hardware problem. I've closed out of iTunes and rebooted the computer, but no love. I'm running ver 11.0.4.4 in Windows 8

    A couple of days after posting this, I began to notice the mouse working inconsistently with other programs. I have narrowed-this down to a hardware problem, and not an iTunes problem. Thanks for looking everyone.

  • Detecting click ( single and double) on row (displayed using iterator)

    Hello All,
    I am using jdev 11.1.1.6
    I am displaying a list as below.
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    My requirement is, when user clicks on a row, that row should be detected in backend and those value will be used.
    My requirement is, On single click row should be detected(in backend/bean)
    On double click, the values is saved(in backend/bean).
    How can i detect single and double click on a particular row ?

    I have updated the code as below, single click and double click are getting detected on a row
        <af:resource type="javascript">
                function singleClick(){
                    alert("Single Click");
                function doubleClick(){
                    alert("Double Click");
        </af:resource>
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp" onclick="singleClick()" ondblclick="doubleClick()">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    Now,
    suppose i have following values for some/any row,
    value1=20, value2="abc", value3=009, value4="Language" 
    How can i retrieve these values in java script (if in backing bean then very good)

  • How to handle both single click and double click from mouse

    hey,
    I looked in past threads and didn't get a proper answer for capturing both single and double click from the mouse.
    in most applications the single click action does not interfere with the double click action, for example in a text editor, single click sets the cursor in between the text, double click marks a word, triple click marks a sentence, they do not bother each other, they all can happen first the single then the double and then the triple, but what if i have a very distinct action for each of the actions, the e.getClickCount() returns every time the number of clicks and if i use
    if(e.getClickCount()==1)
        doSingleClick();
    if(e.getClickCount()==2)
        doDoubleClick();it will always do first the single click and then the double click, which works fine with the example i gave, but not with what i want to do, so i was thinking to over come this that i will use another thread to run my tasks if dt has past since the last click and by the last click counts to perform the correct action and go to sleep until the next mouse click notify it, what do you think?
    run this to get what i mean...
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MouseClickTest {
         static long previousTime = System.currentTimeMillis();
         public static void main(String[] args) {
              JPanel panel = new JPanel();
              JButton component = new JButton("Hit me, please");
              component.addMouseListener(new MouseAdapter(){
                   public void mouseClicked(MouseEvent me){
                        if(me.getClickCount()==1)
                             System.out.println("Now I will do single click action");
                        if(me.getClickCount()==2)
                             System.out.println("Now I will do DOUBLE click action");
    //                    System.out.println("Click count: " + me.getClickCount());
              panel.add(component);
              Launcher.launch(panel);
    package blah;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Launcher {
         public static JFrame launch (Container contents, String title, Color backgroundColor) {
              JFrame frame = new JFrame (title);
              if (backgroundColor != null) {
                   frame.setBackground (backgroundColor);
                   contents.setBackground (backgroundColor);
              } else {
                   frame.setBackground (contents.getBackground());
              frame.getContentPane().add (contents, BorderLayout.CENTER);
              frame.pack();
              frame.addWindowListener (new WindowAdapter() {
                   public void windowClosing (WindowEvent e) {
                        System.exit (0);
              frame.setVisible (true);
              return frame;
         public static JFrame launch (Container contents, String title)      {
              return launch (contents, title, null);
         public static JFrame launch (Container contents, Color backgroundColor) {
              return launch (contents, contents.getClass().getName(), backgroundColor);
         public static JFrame launch (Container contents) {
              return launch (contents, contents.getClass().getName());
    }

    Read my comments and solution in this posting; [http://forums.sun.com/thread.jspa?forumID=57&threadID=705244]
    and then choose a better design for your application.

  • Recently my iPad does not consistently respond to a single or double click on the home button and i've had no choice but to turn it off and back on to escape fron the app  i'm using. Can't say it is consistent with any one app. Suggestions are asked for

    My ipad recently seems to be freezing and not responding to home button single or double clicks?

    While this could potentially be a hardwar issue:
    Try a rest: Simultaneously hold down the Home and On buttons until the iPad shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the iPad back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.
    If the reset doesn't work, you may need to consider restoring the iPad to factory settings

  • My track pad stopped working with a single finger/double click when I try to open emails, and when I try to open apps on desk top.  If I use two fingers, and then click open, I can open them.  Thank You for your help.

    My track pad stopped working with a single finger/double click when I try to open emails, and when I try to open apps on desk top.  If I use two fingers, and then click open, I can open them.  Thank You for your help.

    Greetings ascnephew8,
    It seems your trackpad isn't working as you expect it to. Have you reviewed the trackpad settings in System Preferences? The following article provides trackpad setting details which may help:
    OS X Mountain Lion: Change the way your trackpad works
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Single or double click with thumb doesn't work well on trackpad since upgrade to mountain lion

    I'm using a 2009 MacBook Pro recently upgraded from Snow Leopard to Mountain Lion.
    The internal AND external trackpad behavior is disappointing compared to Snow Leopard.  Neither one seem to register my thumb single or double click unless I do it pretty hard. For instance, selecting a word or double click to select a line. 
    A single finger works better but it's inconvenient to change years of training. 
    Sometimes I tap w/ my thumb on a button or link and it works and sometimes and I get no response until I use my finger.  It's like the trackpad sensitivity is off. Single tap only half works.
    I was really efficient with the old trackpad behavior and my thumb.
    Any suggestions?
    Thanks.

    I'm the OP and I'm the one that listed the problem originally. I spent an hour with apple care and the genius level two guy suggested I wipe my whole system. LOL, for a 40MB app, yeah right. The issue with Safari 6 is javascript, according to yahoo javascript is turned off. If you try to change your classic yahoo mail to the newer version it will give you a javascript turned off error. So for whatever reason Safari 6 has javascript turned off even though it is clicked ENABLED in preferences. Crazy. I did find my solution though and that was to dump Safari 6 by giving myself "read and write" permissions and then dumping the safari chache, plist, and preferences files. Then I installed Safari 5.17 by downloading the dmg from the net using PACIFIST. I had complete directions but somebody at apple decided to delete the whole post.

  • With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    Of course. To do it, open a Finder window, go to Finder menu (on the menu bar) > Preferences > General, and untick "Open folders in tabs instead of new windows".

  • In an album, many pictures would show on the screen and double clicking one would enlarge it for adjustments. Now one larger photo shows and along the bottom severa smaller ones. Options which used to be at the top right of screen no longer show. Whel

    In Aperture album about 16 photos would show on screen and double clicking on one would enlarge it for adjustments. Now one larger image shows with about 7 photos at bottom. Options for controlling this no longer appear at top right. How do I correct this?

    Do you mean the "View" controls are missing in your Toolbar?
    To add these controls back to the Toolbar, use the View menu and select "Customize Toolbar". Drag the View Controls back to the Toolbar.

  • How do I set Firefox to automatically open downloads instead of having to go to my downloads and double click to open?

    Whenever I have used Firefox on a PC it at least gave me the option to open certain file types automatically. I download a lot of files and the time adds up when I have to open the downloads box and double click on the file each time.

    Hi,
    This could help you: [https://support.mozilla.org/en-US/kb/Managing%20file%20types#w_changing-download-actions Changing download actions]

  • When I type I cannot add text when I select the text area and double click. Why?

    When I type I cannot add text when I select the text area and double click. Why?

    Premiere Elements 11  trial version for macMac computer photos uploaded to the timeline just finetrying to make a new title, streaming or in a framedouble clicked on the text in the box and nothing shows up when I type on my keyboard. I can delete the words that are there but not type in new ones. I selected the type and size, etc.
    Thanks if you can figure it out. I gave up!
    I may just un-install it all together if I can't get to work.Joanne
    Date: Thu, 9 May 2013 17:59:08 -0700
    From: [email protected]
    To: [email protected]
    Subject: When I type I cannot add text when I select the text area and double click. Why?
        Re: When I type I cannot add text when I select the text area and double click. Why?
        created by A.T. Romano in Premiere Elements - View the full discussion
    Joanne Murray J2 What version of Premiere Elements are you using and on what operating system (including 32 or 64 bit) is your Premiere Elements installed? Forgive the questions if you have been there and done that, but I do not want to take anything for granted that might hinder a speedy resolution to your issue. Are you opening an already created title that is sitting on the Timeline in order to edit it in the Titler or are you trying to create a new Title (Default Text or other)? Do you know how to work with the Selection Tool and Type Tool in the Titler? Once I know what version of Premiere Elements that you are using, I will give you specific how to details. Thanks. ATR
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5307494#5307494
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5307494#5307494
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5307494#5307494. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Found a site in "history" frm 3/7/2014 and double clicked to see it--now it "removed" that site from the 3/12 history, need that listing back

    Found a site in "history" from 3/7/2014 and double clicked on it to insure it was the correct site I was searching for--now it "removed" that site from the 3/7/2014 history and its only listing is this morning; I need that listing of the original visit back in my history so I can prove I visited it on 3/7.....I can list the number of times it was visited, but I need the listing "back" with the date of when the site was visited ...any help would be appreciated

    See:
    *[[/questions/931864]] Can I access all dates that a website has been visited?

  • When I open last import and double click on a photo, a caution sign pops up. Any solutions?

    When I open last import and double click on a photo, a caution sign pops up. Any solutions?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

Maybe you are looking for