5 Replies Latest reply on Mar 16, 2009 1:28 PM by Nick Belaevski

    [rich:tree] Row key not available

    Kerdudou Ronan Apprentice

      Hi all,

      We are using RF 3.3.0 with JSP.

      We 've got a strange message when we hide a rich:tree.

      Row key: treeNodeAdaptator:1 isn't available!



      Here is the code :

      <a4j:commandLink action="#{myBean.toggleTree}"
       reRender="treePanel">
       <h:graphicImage url="#{contexte.icones['Folder.gif']}" />
      </a4j:commandLink>
      
      ....
      
      <h:panelgroup id="treePanel" rendered="#{myBean.treeHidden}">
       <rich:tree switchType="client">
       <rich:recursiveTreeNodesAdaptor
       id="treeNodeAdaptator"
       roots="#{myBean.root}"
       var="node" nodes="#{node.nodes}">
       <rich:treeNode id="treeNodeSousTache">
       ....
       </rich:treeNode>
       </rich:recursiveTreeNodesAdaptor >
       </rich:tree>
      </h:panelgroup>
      


      The message only appears with the following use case:

      - click to show the tree.
      - Uncollapse one node of the tree.
      - click to hide the tree.
      => the message appears: The given id seems to be the uncollapsed node's one.

      Any clue of what is wrong ?

      Thanks for any reply.