ICEfaces
  1. ICEfaces
  2. ICE-6912

Unable to select text after double clicking row

    Details

      Description

      The user has an ice:dataTable that when double clicked (rowSelection) will take you to a basic details page. Once there you are unable to use the cursor and highlight/select text in the view. However, the table also contains a commandButton which will take you to this same details page but text selection is active. Their clickListener will create a new tab within their custom tabSet component.

      After digging deeper, we found that the double click DOM update differs from the commandButton in that there is a focus call. Since clicking the commandButton works as expected, we suggested that the user add a component binding to the commandButton and explicitly set focus which then did result in the same DOM update for both actions:
      Command button action event:

      <update address="f2YiHAyt395YQr_X7OU8eg:1:dynamic-code" tag="script">
      <attribute name="id">f2YiHAyt395YQr_X7OU8eg:1:dynamic-code</attribute>
      <attribute name="type">text/javascript</attribute>
      <content>Ice.Focus.setFocus('createPRForm:tblResults:0:cmdOpen');//1843364878</content>
      </update>

      Row selector click event:

      <update address="f2YiHAyt395YQr_X7OU8eg:1:dynamic-code" tag="script">
      <attribute name="id">f2YiHAyt395YQr_X7OU8eg:1:dynamic-code</attribute>
      <attribute name="type">text/javascript</attribute>
      <content>Ice.Focus.setFocus('createPRForm:tblResults:0:cmdOpen');//-1728417036</content>
      </update>

      A test case has been uploaded to the FTP site mentioned in the comment below. The relevant files can be found here:

      1. DataTable + RowSelector - RefreshTestSource/WEB-INF/includes/templates/paginator/sortable_paginator_tpl.jspx
      2. TabSet composite component - RefreshTestSource/WEB-INF/facelets/tags/tabs.xhtml and tab.xhtml
      3. TabControlBean - RefreshTestSource/src/au/com/nissan/havana/beans/TabControl.java

        Activity

          People

          • Assignee:
            yip.ng
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: