Single (instead of Double) click for af:table editingMode="clickToEdit"

Hi all,
My af:table has editingMode="clickToEdit".
A row becomes editable by double clicking on it - this is a default.
How can I overide this editable behaviour with ONLY SINGLE click instead of Double?
Thanks.

Ok, I can overirde the selection listener,
but inside that method I do not want to: setEditingMode("editAll");
I still want the table to have editingMode="clickToEdit".
But I want with only one click (instead of double) the row to be editable.
So one row editable at the time.
But only one click to show input fields.
The tabel does not have a property (number of clicks to make the row editable) that I can control.
In RichTable class it sais:
In "clickToEdit" mode a single row editable at a time. A row becomes editable by double clicking on it.
Can I overide this with: one click on the row???
And for sure I do not want to PPR the table since default double click on the table do not refresh the whole table.
Thanks.
Edited by: VesnaS on 15-Jan-2010 10:47 AM

Similar Messages

  • 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 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

  • Is there a way to slide up to reveal apps that are open instead of double clicking?

    Is there a way to slide up to reveal apps that are open instead of double clicking?

    Only on the iPad.

  • Blocks in standalone applications which can be double clicked for changing parameters

    Can we have blocks in standalone applications which can be double clicked for changing parameters.
    something like an options/configure button which opens another window and helps us to change tha parameters  of that particular
    block.

    Well, you will need to program your application that way. Maybe I am not understanding this correctly but what parameters do you want to change in your standalone application?
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • My 4s suddenly tells me to double click for all functions. How do I revert to normal function please?

    My 4s suddenly tells me to double click for all functions. How do I revert to normal functions please?

    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/voiceover -on-off
    (Note that my links to other pages may promote my organization, and this should not be taken as an endorsement by Apple)

  • ADF Rich Client Faces af:table editingMode="clickToEdit" event handling

    I have a table with editingMode="clickToEdit" that contains columns with inputText with values that map to Eclipselink JPA Entity bean properties.
    I am struggling to find an event that I can monitor that would allow me to persist or cancel the changes the user enters. I might add "Commit" and "Cancel" commands in their own columns but then I would like to have an event that allow me to enable and disable those commandButtons. In any event I would like to capture the fact that a row has entered editing mode with either a clientListener or a servletListener.
    Is any of this possible?
    Frank's suggestion in Re: Edit Specific Row on click of button in ADF table implies that the table be re-rendered and I would specifically like to avoid that as it is disturbing to the user to have the entire table redrawn, particularly when the size of the table exceeds the displayed rows.
    Thanks, Mark.

    I suppose I didn't ask my question properly. I have been persisting POJO and JPA beans with ADF Faces, Trinidad and ADF Faces Rich Client since 2004 and I have a hundred thousand lines of library code to manage that.
    The tricky thing about <af:tables (and <tr:tables for that matter) is that it is challenging to render individual rows or cells and re-rendering the entire table is disruptive to the user experience. My normal practice is to allow the user to select a row and then click an edit button that re-renders an edit panel (or detail stamp) which contains a submit button. However, for small simple tables this is overkill and in-line editing would be very attractive. The WONDERFUL thing about <af:table editingMode="clickToEdit" is that the user can enter an EDIT mode without redrawing the table.
    My problem is that I have not yet discovered an event that I can monitor to let me know that the user has done this. What I think that I want is something like the clientListener selection event that would fire when the editingMode state changed: a clientListener editingMode event.
    If I use the clientListener selection event, is there any way I can determine editingMode state of the row?
    Here is what I have tried
          <af:table id="paymentTable" binding="#{PaymentLogTable.table}"
                    rows="5" value="#{PaymentLogTable.model}" rowSelection="single" columnSelection="single"
                    var="payRow" displayRow="selected" editingMode="clickToEdit"
                    selectionListener="#{PaymentLogTable.selectionListener}">
            <af:clientAttribute name="keyColumn" value="payRow_amount"/>
            <af:clientListener method="MIZAR.adf.selectionHandler" type="selection"/>
            <af:clientListener method="MIZAR.adf.editingModeHandler" type="dblClick"/>
            <af:column clientComponent="true" width="50" align="center" headerText="ID" sortable="false">
              <af:outputText value="#{payRow.id}" />
            </af:column>
            <af:column width="75" align="right" headerText="Amount" sortable="false" clientComponent="true">
              <af:inputText id="payRow_amount" value="#{payRow.amount}" valueChangeListener="#{payRow.setRowDirty}" clientComponent="true">
                <af:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
              </af:inputText>
            </af:column>
    ... more columns
    MIZAR.adf.selectionHandler = function (event){
      MIZAR.adf.editingModeHandler(event);
    MIZAR.adf.editingModeHandler = function (event) {
      var table = event.getSource();
      var keys = table.getPropertyKeys();
      var selectedRowKeys = table.getSelectedRowKeys();
      var keyColumn = table.getProperty('keyColumn');
      var aKeySet = event.getAddedSet();
      for(aRowKey in aKeySet){
          var newRowKey = aRowKey;
      var newRowComp = table.findComponent(keyColumn,newRowKey);
      if ( newRowComp ){
        var readOnly = newRowComp.getReadOnly();
        if ( !readOnly ){
          alert ('Editable'); // NEVER GETS HERE
      if (table.getProperty('isCanceled')) {
        alert ('canceled');
    }But, the MIZAR.adf.editingModeHandler doesn't get called when I double click the row and neither does the MIZAR.adf.selectionHandler. The inputText component always shows up as readOnly = true.
    Thanks, Mark

  • Selecting a page with a single-click instead of double-click

    Is there anyway to make InDesign CS5.5 move my file to the page I have selected in the pages panel without having to double-click the page in the pages panel?
    I keep forgetting that the page selected in the panel may or may not be the page I'm currently editing & this is very frustrating.

    Page that you're currently on is highlighted in reverse (black background white text)
    If you're select a page in the pages panel it highlights blue to indicate it's selected. This allows you to move the page if you need to, or select over dozen other options for that page, numbering, sections, override, move, duplicate, apply master page to, delete, rotate view, colour label, page transiitions, hide master items and spread flattening!
    You double click a page to move to that page. If it was only a single click then it would be quite frustrating to be hopping all over the document when all you want to do is renumber/resection/dupe or over a dozen different options mentioned above.
    CTRL/CMD J will bring up the Go To Page dialog box.
    Navigate with the page numbers as peter suggested.
    There's a reason it works like that - because it works best.

  • Handle double click for alv_tree?

    hej out there,
    as you may remember I'm doing some updates to UIs.
    Somehow it should be possible to make alv_tree handle double_click events, shouldn't it?
    I don't know how to go on. I found some methods but they don't work properly (or as expected).
    I know there are methods to do so with simple_tree... hmpf. But it would be the worst solution to switch technique to simple_tree.
    regards and thanks in advance,
    BS

    Hej,
    I gotta do it using alv-tree.
    And I tried it the following way (just did a short and quick example which remains fundamentally the same to my old report).
    But the way it's done in the following code snipped it won't work... if decomment
    *    event-eventid = cl_gui_alv_tree=>eventid_node_double_click .
    *    event-appl_event = ' ' .
    *    APPEND event TO events .
    the message will be raised telling node double click has been handled... but not a single node can be expanded anymore.
    CLASS event DEFINITION.
      PUBLIC SECTION.
        METHODS:
          handle_node_dblclick
            FOR EVENT node_double_click
                   OF cl_gui_alv_tree
            IMPORTING node_key.
    ENDCLASS.
    CLASS event IMPLEMENTATION.
      METHOD handle_node_dblclick.
        DATA:
          l_carrid TYPE spfli-carrid,
          l_connid TYPE spfli-connid.
        l_carrid = node_key(2).
        l_connid = node_key+2(4).
        MESSAGE i001(ZBOBOPP1) WITH 'handled double click'
                                    l_carrid
                                    l_connid .
      ENDMETHOD.
    ENDCLASS.
      DATA:
        ctrlcontainer TYPE REF TO cl_gui_docking_container ,
        treectrl      TYPE REF TO cl_gui_alv_tree ,
        evt           TYPE REF TO event ,
        tblpointer    TYPE TABLE OF scustom ,
        fieldcat      TYPE lvc_t_fcat ,
        hierhead      TYPE treev_hhdr ,
        events        TYPE cntl_simple_events ,
        event         TYPE cntl_simple_event .
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'S_100'.
      SET TITLEBAR 'T_100'.
      IF ctrlcontainer IS INITIAL .
        CREATE OBJECT evt.
        CREATE OBJECT ctrlcontainer
          EXPORTING
            extension = 900 .
        CREATE OBJECT treectrl
          EXPORTING
            parent         = ctrlcontainer
            no_html_header = 'X' .
        PERFORM adjcolarea
          CHANGING fieldcat.
        hierhead-heading   = 'Land/Kundenname/Kunde'(300).
        hierhead-tooltip   = 'Name des Kunden'(400).
        hierhead-width     = 45.
        hierhead-width_pix = space.
        CALL METHOD treectrl->set_table_for_first_display
          EXPORTING
            is_hierarchy_header = hierhead
          CHANGING
            it_outtab           = tblpointer
            it_fieldcatalog     = fieldcat.
    *    event-eventid = cl_gui_alv_tree=>eventid_node_double_click .
    *    event-appl_event = ' ' .
    *    APPEND event TO events .
    *    CALL METHOD treectrl->set_registered_events
    *      EXPORTING
    *        events = events .
        SET HANDLER evt->handle_node_dblclick FOR treectrl .
        PERFORM select_data_and_fill_col_tree .
        CALL METHOD treectrl->frontend_update .
        CALL METHOD cl_gui_cfw=>flush .
      ENDIF .
    ENDMODULE .                 " STATUS_0100  OUTPUT
    Thanks,
    BS
    Message was edited by: Boris Schoessow

  • Double Click event on table

    I need to allow selection of table row on double click - I implemented this functionality as suggested in article "http://technology.amis.nl/blog/3845/adf-11g-richfaces-handling-the-client-side-double-click-to-invoke-a-server-side-operation". I noticed the double click works fine if I click on any part of the row that is empty (without text). If i double click on the text that is displayed on the column cell - it just highlights the text and does not invoke Java script method for handling double-click event. I have set table 'rowselection' to 'single'. I am using Jdeveloper 11.1.5 and Firefox (3.1.16) browser.
    Any one else has experienced this issue, is there any solution for this.

    Thanks Timo for your response. I am seeing this odd behavior when using pageflowscope managed bean.
    1). I have a page (part of unbounded taskflow) that has commandlink which invokes a task flow as dialog (inline-popup):
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" title="testw">
    <af:form id="f1">
    <af:panelGroupLayout id="pgl1">
    <af:commandLink text="Link"
    id="cl1" useWindow="true"
    immediate="true"
    windowHeight="500" windowWidth="600"
    windowEmbedStyle="inlineDocument"
    inlineStyle="text-align:left;"
    action="testflow"/>
    </af:panelGroupLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    2). The inline popup has a table where I am using double click event on a row.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1" clientComponent="true">
    <af:table value="#{TestdblClick.list}" var="row"
    rowBandingInterval="0" id="t1" rowSelection="single"
    clientComponent="true" binding="#{TestdblClick.contactTable}"
    emptyText="no data" columnStretching="last">
    <af:clientListener method="dblkfunction" type="dblClick"/>
    <af:serverListener type="doubleClickOnRow"
    method="#{TestdblClick.doubleClick}"/>
    <af:clientListener method="singlelkfunction" type="selection"/>
    <af:serverListener type="singleClickOnRow"
    method="#{TestdblClick.singleClick}"/>
    <af:column sortable="false" headerText="Col1" align="start" id="c3"
    rowHeader="unstyled">
    <af:outputText value="#{row.col1}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="Col2" align="start" id="c2">
    <af:outputText value="#{row.col2}" id="ot3"/>
    </af:column>
    <af:column sortable="false" headerText="Col3" align="start" id="c1">
    <af:outputText value="#{row.col3}" id="ot2"/>
    </af:column>
    </af:table>
    </af:form>
    <f:facet name="metaContainer">
    <af:resource type="javascript">
    function dblkfunction(event) {
    var source = event.getSource();
    AdfCustomEvent.queue(source, "doubleClickOnRow",
    },false);
    function singlelkfunction(event) {
    var source = event.getSource();
    AdfCustomEvent.queue(source, "singleClickOnRow",
    false);
    </af:resource>
    </f:facet>
    </af:document>
    </f:view>
    </jsp:root>
    TestdblClick.java
    ====================
    public class TestdblClick {
    public TestdblClick() {
    private RichTable contactTable;
    private List<Testdata2> list = null;
    public List<Testdata2> getList() {
    this.list = new Vector<Testdata2>();
    Testdata2 t1 = new Testdata2 ("joe", "demaggio", "contact");
    Testdata2 t2 = new Testdata2 ("joe2", "demaggio2", "contact");
    Testdata2 t3 = new Testdata2 ("joe3", "demaggio3", "contact");
    list.add(t1);
    list.add(t2);
    list.add(t3);
    return list;
    public void setList(List<Testdata2> list) {
    this.list = list;
    public void singleClick(ClientEvent clientEvent)
    System.out.println("------single click------");
    public void doubleClick(ClientEvent clientEvent)
    System.out.println("------doubleclick------");
    public void setContactTable(RichTable contactTable) {
    this.contactTable = contactTable;
    public RichTable getContactTable() {
    return contactTable;
    If I make "TestdblClick" managed bean as request scope to handle double-click event it works fine, however if I make "TestdblClick" managed bean as pageflow scope (task flow) it does not work when double click is on a text within the table row. I am not sure why pageflowscope should impact the double-click behavior.

  • Can I disable double-clicking for a new tab?

    I would prefer to minimize the browser window by double-clicking next to the open tab (and don't really have a use for tabs, anyway). However, with the way it's set up currently, I have to be very careful when double-clicking the window, making sure the curser clicks above the tab area or it will add a new tab instead of minimizing. I cannot seem to turn off this functionality in any of my preferences or toolbar options and do not have administrative rights to upgrade to the newest version of Firefox. Is there a command I can type into the location bar to hide or disable this?

    You can minimize the window that has focus with Command-m.

  • Get double return for join table

    Dear Experts:
    SELECT eban~banfn      "PR number
             eban~bnfpo      "PR item
             eban~bsart      "Doc Type
             eban~bednr      "Requistion tracking number
             eban~ebeln
             eban~ebelp
             eban~zzloc      "GEO code
             ztmm_ccp~zzclli "zzclli code
      INTO CORRESPONDING FIELDS OF TABLE gi_pr_extract
      FROM  ( eban
             INNER JOIN ztmm_ccp
                    ON  eban~bednr = ztmm_ccp~bednr
                   AND  eban~ebeln = ztmm_ccp~ebeln
                   AND  eban~ebelp = ztmm_ccp~ebelp )
      WHERE eban~bsart IN s_bsart.  "11 input doc type
    The s_bsart are:
    NB
    UB
    ZNB
    ZSC
    ZUC
    ZVC
    ZXC
    ZZO
    ZZX
    ZZY
    ZZZ
    From above SQL, I got double returen for each  ebanbanfn  and ebanbnfpo
    Row     BANFN     BNFPO     BSART     BEDNR     ZZLOC     ZZCLLI
    1      3100000056     00010     NB               
    2      3100000056     00010     NB               CLLICD DRTP
    3      3100000057     00010     NB               
    4      3100000057     00010     NB               CLLICD DRTP
    5      3100000058     00010     NB               
    6      3100000058     00010     NB               CLLICD DRTP
    7      3100000061     00010     NB               
    8      3100000061     00010     NB               CLLICD DRTP
    9      3100000062     00010     NB               
    10      3100000062     00010     NB               CLLICD DRTP
    Do you know why and how do I get the unique one?
    Thank you very much!
    Helen
    Edited by: Thomas Zloch on Oct 4, 2010 3:49 PM - please use code tags

    Hi Helen,
    Please check with the below code snippet. Hope it will work.
    SELECT eban~banfn     
              eban~bnfpo    
              eban~bsart     
              eban~bednr    
              eban~ebeln
              eban~ebelp
              eban~zzloc     
              ztmm_ccp~zzclli
       INTO CORRESPONDING FIELDS OF TABLE gi_pr_extract
       FROM  eban
              INNER JOIN ztmm_ccp
                      ON    ztmm_ccp~bednr = eban~bednr
                    AND  ztmm_ccp~ebeln = eban~ebeln
                    AND  ztmm_ccp~ebelp = eban~ebelp
       WHERE eban~bsart IN s_bsart.
    Thanks
    Nitesh

  • Problem w/"combo boxes" cause the user to double click for the dropdown menu, but not for everyone.

    I have created a form with Adobe Acrobad Pro 9.
    There are a few "drop-down" boxes for people to choose options from.  I created them with the "Combo box" option.  They work perfectly fine on my laptop (Lenovo T500 windows 7, with all updates up to date.)  I sent the file to another exact same computer and that's when the problem came up.  When you click on the drop-down, the list will quickly appear and then disappear.  Then if you click it again it will stay open so you can choose your option.  However this only happens on "some" computers but not everyone's.  I emailed the exact same form out to other people in my office and they do not have any problems with the form.  There is no need to double click the drop down, it will just open up properly for them.
    Has anyone come across this? And if so, is there maybe a setting on these specific laptops that is preventing the "combo box" to not work properly?  I need to use this specific laptop as a "Kiosk" like a "check out" station for users to fill out the form to check out equipment.  I will be running in Reader so people can not make changes to the form.  (both the Acrobat Pro 9 version and the (most up to date) Reader version of the PDF form does the same "double-click" problem)  I need a date drop down and an equipment type drop down.
    Any suggestions would be greatly appreciated !
    Thanks !

    I've got this kind of problem with a form of mine (designed with LCD) :
    - combo boxes with font-color changing event handlers on :enter
    - on Acrobat 9 Pro : no problem
    - on Reader 8.3 :
          - first click seems to execute the event handler but stops the combo's opening
          - second click does open the combo
    Do you have event handlers on combo:enter ?
    Could the difference between comps where it works and comps where it doesn't be Acrobat's version ?

  • Iphoto wont play movie files and wont double click for zoom or edit

    Hi i bought my first ever macbook a week ago,love everything on it,iphoto worked well but today i wanted to show someone a movie file on my camea which i have in my iphoto libray clicked on it and it usually opens,today nothing!!! this file has opened loads before because its a holiday movie, loads of people have seen it but now nothing.
    Also my double click to zoom or edit preference seems to do nothing whichever box you check in preffence nothing happens.
    Being new to mac i hope i can find some answers!!
    Chris

    Chris:
    Welcome to the Apple Discussions. First Control+click on the movie's thumbnail and select Show File from the contextual menu. When you get to the original movie file double click on it to see if you can open it in Quicktime. If not then it's more a QT issue. If it opens OK in QT go to the next procedure.
    Delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder and try again. If iPhoto is still misbehaving log into another account and try the same operations in iPhoto there. If still not working you may have to reinstall iPhoto from the disk it came one. To do so you'll have to delete the current application and all files with "iPhoto" in the file name that reside in the HD/Library/Receipts folder. After you get iPhoto reinstalled run the latest update for it, 7.1.3 if needed.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Double click for new tab dont work

    When I hidden the menu bar does not work double click on the tab bar to open a new tab. What it does when you double click, is to restore or maximize the window depends on the status of this.
    If I shows the menu bar, go back to work.
    I have the latest version of Firefox 4.
    Thanks.

    Try middle click instead of double click

Maybe you are looking for

  • Vendor wise print on separate page

    Dear all,               I have an ALV Report which display vendor account statement for all the vendors entered in selection screen. I want to take a print for all vendors but each  vendor statement should display on separate page. For new Vendor pri

  • Error at executing RFC in a dynpro project but not at executing in R3

    Hi experts, I have a problem whit my RFC. When I execute it from the R3 there's no problem, I got the result that I expected. But I conect the RFC in a dynpro project and when I executed it I got an error. Supose that my RFC receives a USER as parame

  • Cant burn Disc burner or software not found

    I can't burn a playlist to a disk. I get the message "Disc Burner or Software not Found" How do I rectify this? I have tried everything to get it to work but no luck here is my test. Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build

  • Get the Type (U8, U16...I64) of controls inside a Cluster

    Hi, I have a cluster with several controls.  I would like to get the type of each control inside of it. To get the class is ok. This is simple and all of them are Digital. But I need to know if they are U8, U16, U32 ...... I64.  Any idea how to do th

  • No Video After Mountain Lion Upgrade - MBP17" (2011)

    Hello, I just attempted to upgrade my 2011 MacBook Pro to Mountain Lion on Saturday and now I have no video when I turn the computer on. The upgrade went smoothly but on the final reboot I had no video come back. I've restarted the computer a dozen t