Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.8.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:any
Description
use case:
there's a simple tree containing an icon, label and inputText component. the tree has a root node with 3 children.
the inputText component's partialSubmit attribute is set to true.
when validation is used on the inputText component and a wrong value is entered into the textfield, a validation
error message is shown and all inputText components are populated with this value.
I just copied the code of the component showcase and modified it with a custom validator.
there's a simple tree containing an icon, label and inputText component. the tree has a root node with 3 children.
the inputText component's partialSubmit attribute is set to true.
when validation is used on the inputText component and a wrong value is entered into the textfield, a validation
error message is shown and all inputText components are populated with this value.
I just copied the code of the component showcase and modified it with a custom validator.
-
- ICE-2018.patch
- 0.7 kB
- Stefan Niederhauser
-
Hide
- support-4249.war
- 4.85 MB
- Michael Thiem
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/classes/.../tree/MyValidator.class 0.9 kB
- WEB-INF/classes/.../NodeUserObject.class 4 kB
- WEB-INF/classes/com/.../tree/TreeBean.class 5 kB
- WEB-INF/faces-config.xml 0.8 kB
- WEB-INF/html_basic.tld 244 kB
- WEB-INF/jsf_core.tld 25 kB
- WEB-INF/lib/backport-util-concurrent.jar 343 kB
- WEB-INF/lib/commons-beanutils.jar 100 kB
- WEB-INF/lib/commons-collections.jar 164 kB
- WEB-INF/lib/commons-digester.jar 96 kB
- WEB-INF/lib/commons-fileupload.jar 52 kB
- WEB-INF/lib/commons-logging.jar 27 kB
- WEB-INF/lib/el-api.jar 24 kB
- WEB-INF/lib/el-ri.jar 97 kB
- WEB-INF/lib/icefaces-comps.jar 624 kB
- WEB-INF/lib/icefaces-facelets.jar 574 kB
- WEB-INF/lib/icefaces.jar 658 kB
- WEB-INF/lib/jsf-api.jar 324 kB
- WEB-INF/lib/jsf-impl.jar 602 kB
- WEB-INF/lib/jstl.jar 17 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/lib/standard.jar 343 kB
- WEB-INF/lib/xercesImpl.jar 1.15 MB
- WEB-INF/lib/xml-apis.jar 190 kB
- WEB-INF/web.xml 3 kB
- index.jsp 0.2 kB
- mainTree.xhtml 2 kB
-
Hide
- support-4249-src.zip
- 39 kB
- Michael Thiem
-
- support-4249/src/.../NodeUserObject.java 7 kB
- support-4249/src/com/.../tree/TreeBean.java 11 kB
- support-4249/src/.../tree/MyValidator.java 0.6 kB
- support-4249/WebRoot/.../tree/TreeBean.class 5 kB
- support-4249/.../NodeUserObject.class 4 kB
- support-4249/WebRoot/.../MyValidator.class 0.9 kB
- support-4249/WebRoot/WEB-INF/web.xml 3 kB
- support-4249/WebRoot/.../.faces-config.mex 0.1 kB
- support-4249/WebRoot/.../html_basic.tld 244 kB
- support-4249/WebRoot/.../jsf_core.tld 25 kB
- support-4249/WebRoot/.../faces-config.xml 0.8 kB
- support-4249/WebRoot/.../MANIFEST.MF 0.0 kB
- support-4249/WebRoot/mainTree.xhtml 2 kB
- support-4249/WebRoot/index.jsp 0.2 kB
Issue Links
- is duplicated by
-
ICE-1409 Wrong Tree Node reference
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
This is the patch for the solution I described. (for icefaces version 1.8.0)
Show
Stefan Niederhauser
added a comment - This is the patch for the solution I described. (for icefaces version 1.8.0)
Fixed.
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\Tree.java
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\TreeRenderer.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\Tree.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\TreeRenderer.java
Completed: At revision: 18876
Show
Adnan Durrani
added a comment - Fixed.
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\Tree.java
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\TreeRenderer.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\Tree.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\tree\TreeRenderer.java
Completed: At revision: 18876
The problem is that when a validator fires, the update model phase is not executed.
This causes the tree node's value not to be reset and therefore all nodes have the value of the last node.
Solution: restore the state of the tree nodes when rendering the tree..