-
1. Re: Rich:Tree Update Selection Programmatically
bleathem Nov 4, 2013 1:30 PM (in response to akatsikas)Have you tried setting the selection attribute of the rich:tree to a collection of your selected nodes?
http://docs.jboss.org/richfaces/latest_4_X/vdldoc/rich/tree.html
-
2. Re: Rich:Tree Update Selection Programmatically
akatsikas Nov 4, 2013 3:01 PM (in response to akatsikas)Hello Brian.
Thank you for your reply.
I have tried that but the Collection must be collection Rowkeys.
How can i traverse the tree from the root to the leaf and find the rowkeys;
I also want to compare the node data with a value in order to stop the traversing.Thanks a lot,
Antonis
-
3. Re: Rich:Tree Update Selection Programmatically
bleathem Nov 6, 2013 3:39 PM (in response to akatsikas)You can query the Tree component for it's RowKeyConverter:
-
4. Re: Rich:Tree Update Selection Programmatically
akatsikas Nov 7, 2013 7:51 AM (in response to bleathem)Hello again Brian. Thank you for your reply.
Can you provide an example of how to use RowKeyConverter. Is it necessary to implement my own converter; How can i use it with the collection of rowkeys;
thank you for your time a lot
Antonis
-
5. Re: Rich:Tree Update Selection Programmatically
bleathem Nov 7, 2013 6:53 PM (in response to akatsikas)I don't have an example off hand, I'll see if I can put one together. At the moment I am heads down trying to get RichFaces 5.0.0.Alpha2 released, so I won't be able to get to it soon.