[richfaces-issues] [JBoss JIRA] (RF-12507) TreeNode.getChild(Object o) will be called with truncated string.
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Fri Oct 12 19:22:03 EDT 2012
[ https://issues.jboss.org/browse/RF-12507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-12507:
-------------------------------
Fix Version/s: 4-Tracking
> TreeNode.getChild(Object o) will be called with truncated string.
> -----------------------------------------------------------------
>
> Key: RF-12507
> URL: https://issues.jboss.org/browse/RF-12507
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 4.2.2.Final
> Environment: Linux, OpenJDK 7
> Reporter: Arne Plöse
> Fix For: 4-Tracking
>
>
> if the key for TreeNode contains a string like "A.B.C" the ajax callback will be simple "A" and not "A.B.C" like the calls before. The key gets splitted by the dots(.)...
> Another unpleasant "feature": If you use a object o as key the ajax callback will be with o.toString() this is missing in the javadocs and the implementation of TreeNodeImpl.getChild() ...
> in *.java file
> {code}
> myRoot = new TreeNodeImpl(false);
> TreeNodeImpl a = new TreeNodeImpl(false);
> TreeNodeImpl b = new TreeNodeImpl(true);
> TreeNodeImpl c = new TreeNodeImpl(true);
> myRoot.addChild("AAAA", a);
> a.addChild("B.B.B", b);
> a.addChild("C.C.C", c);
> {code}
> and the *.jsf file
> {code}
> <rich:tree value="#{dataPointBean.root}" var="node" toggleType="ajax" selectionType="ajax" selectionChangeListener="#{dataPointBean.processTreeSelectionChange}" >
> <rich:treeNode>
> <h:outputText value="#{node.name}" />
> </rich:treeNode>
> </rich:tree>
> {code}
> the selectionChangeLlistener of nodes "B.B.B" and "C.C.C" will never be called.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list