1 Reply Latest reply on Dec 18, 2007 4:14 PM by pmuir

    Duplicate calls to functions

    german.castro

      I have al tree:

       <rich:tree switchType="ajax"
       ajaxSubmitSelection="true"
       preserveModel="request"
       style="width:300px" value="#{bean.tree}" var="item"
       nodeFace="#{item.type}">
       <rich:treeNode type="client" icon="img/clientIcon.png" iconLeaf="img/clientIcon.png">
       <h:outputText value="#{item.client.name}"/>
       </rich:treeNode>
       <rich:treeNode type="local" icon="img/localIcon.png" iconLeaf="img/localIcon.png" >
       <s:link value="#{item.local.name}" view="/areaSelect.xhtml" target="selectFrame"/>
       </rich:treeNode>
       <rich:treeNode type="area" icon="img/areaIcon.png" iconLeaf="img/areaIcon.png">
       <s:link value="#{item.area.name}" view="/indSelect.xhtml" target="selectFrame"/>
       </rich:treeNode>
       </rich:tree>
      


      The bean.tree function always return the whole tree.

      When i see the tree page and when i open a tree node, seam calls more than one time the function bean.tree

      Some times the this do 2 calls, and other times do MANY calls, depends of tree attributes. But always the function is called more than one time.

      Somebody can explain me why?