[jboss-user] [JBoss Seam] - Duplicate calls to functions

german.castro do-not-reply at jboss.com
Wed Dec 12 11:34:00 EST 2007


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112299#4112299

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112299



More information about the jboss-user mailing list