Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-4.0.0.GA, EE-3.3.0.GA_P03
-
Fix Version/s: 4.1, EE-3.3.0.GA_P04
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P1
-
Support Case References:Support Case #13440 - https://icesoft.my.salesforce.com/5007000001Enns2
Description
-
Hide
- Case13440Example.zip
- 23 kB
- Arran Mccullough
-
- Case13440Example/build.xml 3 kB
- Case13440Example/.../ant-deploy.xml 2 kB
- Case13440Example/.../build-impl.xml 80 kB
- Case13440Example/.../genfiles.properties 0.5 kB
- Case13440Example/.../private.properties 0.6 kB
- Case13440Example/.../project.properties 4 kB
- Case13440Example/nbproject/project.xml 1 kB
- Case13440Example/src/conf/MANIFEST.MF 0.0 kB
- Case13440Example/src/.../support/Item.java 0.1 kB
- Case13440Example/.../LocationNodeImpl.java 4 kB
- Case13440Example/src/.../TestBean.java 1.0 kB
- Case13440Example/.../TreeDataFactory.java 3 kB
- Case13440Example/web/index.xhtml 0.5 kB
- Case13440Example/web/.../context.xml 0.1 kB
- Case13440Example/web/WEB-INF/web.xml 2 kB
- Case13440Example/.../welcomeICEfaces.xhtml 2 kB
-
Hide
- Case13440Example.war
- 9.47 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/com/.../support/Item.class 0.3 kB
- WEB-INF/classes/.../LocationNodeImpl.class 6 kB
- WEB-INF/classes/.../support/TestBean.class 2 kB
- WEB-INF/classes/.../TreeDataFactory$1.class 0.7 kB
- WEB-INF/classes/.../TreeDataFactory.class 2 kB
- WEB-INF/lib/icefaces-ace.jar 5.82 MB
- WEB-INF/lib/icefaces.jar 673 kB
- WEB-INF/lib/javax.faces-2.2.7.jar 2.98 MB
- WEB-INF/web.xml 2 kB
- index.xhtml 0.5 kB
- welcomeICEfaces.xhtml 2 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Committed fix to the 4.1 trunk at revision 45015 and to the 3.3 EE maintenance branch at revision 45016.
The NodeStateMap only got entries of nodes that have been displayed. So. I added a utility function to populate the entire NodeStateMap before expanding/contracting all the nodes in the tree.
Verified using attached test case on 4.1 trunk r45025 / 3.3 EE maintenance branch r45025 in IE11/10/9/8, Firefox34, Chrome43.
Note: in order to use attached test case, the commons-collections.jar should be added to the .war file.
Test case has been added to the QA regressions suite for ace:tree:
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/tree (IF 4.1 trunk)
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Nightly/tree (EE 3.3 maintenance)
r45235: modified original fix to create a static key set first, when populating the NodeStateMap, in order to avoid ConcurrentModificationException exceptions when invoking callbacks
r45236: committed fix to the 3.3 EE maintenance branch
Ran the QA ace:tree regressions on ICEfaces4 trunk/ EE-3.3.0-maintenance branch r 46236:
On ICEfaces4 trunk, the Ajax "reorder" event tests fail, as clicking on the + fails to drag a node, dragging the entire tree.
On EE-3.3.0-maintenance branch, most of the demos fail to render the nodes (+ signs), see as example /treeOnly.jsf. There are a few demos rendering correctly the tree nodes, as example, /ICE-10723.jsf and /ICE-10723-lazy.jsf.
Noticed also the province nodes are already expanded on first load of /ICE-10723-lazy.jsf, while all nodes are found contracted when first accessing /ICE-10723.jsf. Is this an issue?
r46240: fix to ensure that the id rendered to call ice.ace.instance and to re-apply the reordering behaviour is the client id of the root container and not the client if of individual nodes.
This fix was committed to the 4.0 trunk and solves the issue above. The issue was actually caused by the widgetVar removal changes (ICE-10733).
The difference between ICE-10723-lazy.jsf and ICE-10723.jsf is not an issue. The former has a callback specified (stateCreationCallback="#
"), which, as you can see in the bean code, expands the root node when the state map is created.
r46244: added jQuery UI CSS resources as a resource dependency for ace:tree (3.3 EE maintenance branch).
This solves the issue in 3.3 with the icons not displaying. It wasn't related to previous fixes of this JIRA.
Attached test case that shows this issue.
Steps: