0 Replies Latest reply on Apr 9, 2008 9:58 PM by marcus sim

    Tree component load different action

    marcus sim Newbie


      I am using the tree component and wanted to execute different action when each tree children is loaded.
      Right now my code in the page is as below. Now its only executing one action no matter what children is loaded. Is there any way to make the commandLink action to execute different action when loaded? Thanks.

      <rich:tree switchType="client" style="width:300px" value="#{simpleTreeBean.treeNode}" var="item">
      <rich:treeNode iconLeaf="/images/person.gif" icon="/images/person.gif">

      h:commandLink action="#{simpleTreeBean.prepare}" value="#{item.title}" />