-
1. Re: <rich:tree> in richfaces 4
michpetrov Sep 25, 2015 8:55 AM (in response to kkn)There aren't that many methods to choose from, are there? Use getChildrenKeyIterator() and getChild(Object key), if you really need a collection then implement your own method.
-
2. Re: <rich:tree> in richfaces 4
kkn Sep 29, 2015 2:24 AM (in response to michpetrov)HI Michal,
Thank you so much for your reply! I have tried couple of ways but I ended up writing my own class ExtendedTreeNodeImpl which would implement TreeNode interface. I have added public method getChildren() as available in previous richfaces 3 version as I need tree children for my existing functionality of traversing the selected node and save only selected nodes.
However, can you please explain why the public method getChildren() was removed from version 4. Is there any reason or maybe disadvantages of having the public method getChildren()?
But after making it work, I see that the tree icons (expand/collapse) are plus and minus signs as below
However, previously, I was getting arrows as below
I tried setting expandIcon and collapseIcon but that did not work. Can you please help me how can I get the icons shown in the second image?
Thank you!
-
3. Re: <rich:tree> in richfaces 4
michpetrov Sep 29, 2015 4:15 AM (in response to kkn)I tried setting expandIcon and collapseIcon but that did not work. Can you please help me how can I get the icons shown in the second image?
Those are not the right attribute names, not even in RichFaces 3, use iconExpanded and iconCollapsed.