How do I present a RichFaces tree with a specific node already expanded

Posted by Brummo on Stack Overflow See other posts from Stack Overflow or by Brummo
Published on 2010-03-30T11:16:04Z Indexed on 2010/03/30 14:23 UTC
Read the original article Hit count: 344

Filed under:
|
|

I have a JSF page that displays a RichFaces Treeview, from a TreeNodeImpl model generated in the backing bean.

Now I want the page to display initially with a specific node expanded / selected. Preferrably this expansion should be controlled from the backing bean (no javascript wizardry)

The whole tree has been generated at the time of initialization of the backing bean

Is this possible? I have seen mentioning of TreeState, is that the way to go?

© Stack Overflow or respective owner

Related posts about jsf

Related posts about richfaces