1 Reply Latest reply on Jul 31, 2007 5:03 PM by bvaughn2

    Question on treeNodes with commandLinks

    bvaughn2

      I need to build a tree that the user can click on a parent node or child node and then do to their detail screen.

      <rich:tree switchType="client" style="width:300px" value="#{fetWizardBean.workspace.data}" var="item" nodeFace="#{item.type}">
       <rich:treeNode type="workspace">
       <h:outputText value="#{item.type}"/>
       </rich:treeNode>
       <rich:treeNode type="group" >
       <h:commandLink action="#{fetWizardBean.viewGroup}">
       <h:outputText value="#{item.name}" style=""/>
       </h:commandLink>
       </rich:treeNode>
       <rich:treeNode type="fet">
       <h:commandLink action="#{fetWizardBean.viewFet}">
       <h:outputText value="#{item.name}" />
       <h:outputText value=" - " />
       <h:outputText value="#{item.value}" />
       </h:commandLink>
       </rich:treeNode>
      </rich:tree>
      


      I'm new to JSF and am not sure how I can track which command link was clicked. I guess I could use a param tag but seems like there should be a clearer solution.