Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.2, 1.7RC1
-
Fix Version/s: 1.7.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
Workaround Exists:Yes
-
Workaround Description:User seperate forms or include child nodes on all trees
Description
When using two trees on the same form the root nodes use the same ID derived from the form id. They are being set as formID:root. These should use the form id and then the tree components id so it would be formID:treeID:root. This causes problems when one tree has no child nodes. For example, we have two trees, TreeA and TreeB. TreeA has child nodes and TreeB does not. When clicking on the +/- link on TreeB it changes the +/- icon on TreeA, but does not actually expand/contract the tree. After clicking on the link for TreeB, it leaves the link for TreeA unusable. If TreeB has child nodes as well as TreeA then everything works fine with no issues. Also if the trees are places in separate forms then there is also no issue. Phillip as noted that a fix could be implemented on the getPathAsString method of TreeRenderer.
Adding the tree id to the node id didn't help. Clicking on one tree still affects the other tree. The problem lies in something else?