Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2-EE-GA_P02
-
Fix Version/s: EE-2.0.0.GA, 2.0.2, EE-1.8.2.GA_P03
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
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
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
-
Hide
- icefaces.jar
- 1.34 MB
- yip.ng
-
- META-INF/MANIFEST.MF 0.3 kB
- com/icesoft/.../D2DViewHandler.class 23 kB
- com/.../D2DViewHandlerDelegating.class 0.5 kB
- com/.../PartialSubmitPhaseListener.class 5 kB
- com/icesoft/.../ProductInfo.class 2 kB
- com/icesoft/.../SettableLocaleViewRoot.class 1 kB
- com/.../SingleCopyStateManagerImpl.class 12 kB
- com/icesoft/.../StartupTime.class 1 kB
- com/icesoft/.../TemplateNotFound.class 0.8 kB
- com/icesoft/.../ViewHandlerProxy.class 2 kB
- com/icesoft/.../ViewRootHolder.class 0.6 kB
- com/.../ViewRootStateManagerImpl.class 8 kB
- com/.../serializedTagToComponentMapFull.ser 5 kB
- com/icesoft/.../Util$CaptureArray.class 1 kB
- com/icesoft/.../Util$FacetCaptureNode.class 1 kB
- com/icesoft/.../Util$TreeCaptureNode.class 2 kB
- com/icesoft/faces/.../state/Util.class 5 kB
- com/.../PushServerAdaptingServlet$1.class 3 kB
- com/.../PushServerAdaptingServlet$2.class 1 kB
- com/.../PushServerAdaptingServlet.class 4 kB
- com/icesoft/.../render/AsyncRenderer.class 0.5 kB
- com/icesoft/.../BroadcastRenderer.class 0.2 kB
- com/.../ContextDestroyedListener.class 2 kB
- com/icesoft/.../render/DelayRenderer.class 3 kB
- com/icesoft/.../render/Disposable.class 0.2 kB
- com/icesoft/.../GroupAsyncRenderer$1.class 1 kB
- com/icesoft/.../GroupAsyncRenderer.class 9 kB
- com/icesoft/.../IntervalRenderer.class 3 kB
- com/icesoft/.../OnDemandRenderer.class 0.4 kB
- com/icesoft/.../RejectionHandler.class 2 kB
-
Hide
- icefaces-comps.jar
- 1.75 MB
- yip.ng
-
- META-INF/MANIFEST.MF 0.3 kB
- com/icesoft/.../component/CSS_DEFAULT.class 10 kB
- com/icesoft/.../component/CheckboxTag.class 4 kB
- com/icesoft/.../ColumnGroupTag.class 4 kB
- com/icesoft/.../CommandButtonTag.class 14 kB
- com/icesoft/.../CommandLinkTag.class 15 kB
- com/icesoft/.../ContextActionEvent.class 1 kB
- com/icesoft/.../component/DataTableTag.class 14 kB
- com/icesoft/.../component/DisplayEvent.class 2 kB
- com/.../ExtendedAttributeConstants.class 11 kB
- com/icesoft/.../component/FormTag.class 10 kB
- com/icesoft/.../GraphicImageTag.class 12 kB
- com/icesoft/.../component/HeaderRowTag.class 4 kB
- com/icesoft/.../InputHiddenTag.class 6 kB
- com/icesoft/.../InputSecretTag.class 16 kB
- com/icesoft/.../component/InputTextTag.class 16 kB
- com/icesoft/.../InputTextareaTag.class 15 kB
- com/.../InvalidComponentTypeException.class 0.4 kB
- com/icesoft/.../component/MessageTag.class 8 kB
- com/icesoft/.../component/MessagesTag.class 9 kB
- com/icesoft/.../OutputBodyTag.class 6 kB
- com/icesoft/.../OutputFormatTag.class 6 kB
- com/icesoft/.../OutputHeadTag.class 4 kB
- com/icesoft/.../OutputHtmlTag.class 3 kB
- com/icesoft/.../OutputLabelTag.class 10 kB
- com/icesoft/.../OutputLinkTag.class 14 kB
- com/icesoft/.../OutputTextTag.class 11 kB
- com/icesoft/.../component/PanelGridTag.class 11 kB
- com/icesoft/.../PanelGroupTag.class 14 kB
- com/icesoft/.../component/RadioTag.class 4 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
This tab is subject to removal in future versions.