I am having difficulties while trying to collapse the nodes of a rich:tree component.
More specifically, the tree comoponent is member of a page that corresponds to a backing bean that is in session scope. The second time that the page is rendered and due to the fact that the bean is in session scope, the tree is rendered in its previous state (e.g with its n-level node opened), as well as all the other components of the page. Is there any method that i can call in the backing bean, so that i can clear the tree state and open it with all its nodes collapsed?? I 've been trying to use the queueNodeCollapse(..) and restoreState(..) methods of the HtmlTree class but with no results..Is the state advisor related to the the issue ?
Thanks in advance!
queueCollapseAll() should works ok.
Also you could use advisors. Or if used debug it's methods calls.