1 Reply Latest reply on Jul 17, 2009 4:43 AM by Ilya Shaikovsky

    How to clear tree state?

    evi alxg Newbie

      Hello,
      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!