1 Reply Latest reply on Jan 12, 2010 8:14 PM by Nick Belaevski

    How to autoexpand a richfaces tree when the tree is loaded?

    Peter Len Apprentice

      Hello,

       

      I have a richfaces tree:

       

      <rich:tree id=

      "rtree" switchType="client" value="#{planning.resultsTree}" var="results" nodeFace="#{results.type}">

          .......

      </rich:tree>

       

      When the page is loaded and the tree is rendered, I would like the tree to already be expanded (fully or possibly some combination of folders).  The first question is if this is even possible? If so, would it be an attribute addition or would I get a handle to the tree (via javascript) and then call some "expand" operation?

       

      Any thoughts?

       

      Thanks - Peter