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
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-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
-
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
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Tried Tomcat 6.0.18 (also tried 7.0.8). Same problem.
Tried unpacking war and setting up webapp in Intellij to run. There was an exception: FacesContext not found. How can FacesContext be not found?
16-Jun-2011 12:01:48 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/faces/context/FacesContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3787)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: javax.faces.context.FacesContext
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
... 21 more
Example runs when referencing the following URL http://localhost:8080/RefreshTest/index.iface
App. finally running after installing zip package of Tomcat + app. from Tyler. Can see the problem now.
After tracing the code and putting in some Java and JS debug statements, I rebuilt icefaces.jar and icefaces-comps.jar and copied them to replace old ones in C:\apache-tomcat-6.0.18\webapps\RefreshTest\WEB-INF\lib. After debugging for a while, I suddenly found that it was actually working with the new jars. To make sure that it was not some timing issues I reverted all my changes and rebuilt, copied and ran again. It was still working fine. So this problem seems to have disappeared in the icefaces trunk version. See video at http://screencast.com/t/OskBnBhqcH. (icefaces.jar and icefaces-comps.jar rebuilt from icefaces 1.8 trunk, run in Firefox 4.0.1 and Tomcat 6.0.18.) New jar files attached.
Tested with P03 and the issue is resolved.
\\iceads1\Support\10024\RefreshTest.war
war file doesn't run on my machine. Tomcat (6.0.29) main page lists app. as running, but when app. link followed it says "The requested resource (/RefreshTest/) is not available." No exceptions in log files.
I need to set up project in Intellij. eventually. I need the Java source files. (There is none in the war file.)