5 Replies Latest reply on Feb 6, 2009 4:10 AM by Andreas Hoehmann

    Rich Tree: Opening/Collapsing a Node from Model

    Francisco Jose Peredo Noguez Master

      Hi!

      Lets say I bind my Rich Tree to a list of object using the recursiveTreeNodesAdaptor:

      <rich:recursiveTreeNodesAdaptor roots="#{rootNodes}" var="node" nodes="#{node.childNodes}">
      <rich:treeNode rendered="#{node.visible}">
       #{node.name}
      </rich:treeNode>
      


      Is it possible to open a node from model? I mean, with

      rendered="#{node.visible}"
      


      I can control if it is visible or not... Is there something similar to control if it is collapsed or not? something like:

      collapsed="#{node.collapsed}"
      


      I can not find any example of a way to do that...