0 Replies Latest reply on Feb 15, 2010 11:56 AM by Jaaouane Aymen

    Rich:tree does not remember its state

    Jaaouane Aymen Newbie
      Hello,

      this is a rich:tree component that its switchType="ajax", but the problem that it does not remember its state however i read in the reference of rich faces that when you set switchType on ajax, the tree will remember its state without any additioanal code.

      <rich:tree id="treeXML" switchType="ajax" value="#{treeBean.menu}" nodeFace="#{node.name}" var="node">
           <rich:treeNode type="level1Item" icon="#{node.attributes['img']}">
                          <h:outputText value="#{node.attributes['label']}" />
           </rich:treeNode>
           <rich:treeNode type="level2Item" iconLeaf="#{node.attributes['img']}">
           <h:outputLink value="#{node.attributes['link']}"> <h:outputText value="#{node.attributes['label']}" />
                     </h:outputLink>
           </rich:treeNode>
      </rich:tree>

      When i reload the page, all the nodes return collapsed