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

    Question on treeNodes with commandLinks

    Brian Vaughn Newbie

      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 type="group" >
       <h:commandLink action="#{fetWizardBean.viewGroup}">
       <h:outputText value="#{item.name}" style=""/>
       <rich:treeNode type="fet">
       <h:commandLink action="#{fetWizardBean.viewFet}">
       <h:outputText value="#{item.name}" />
       <h:outputText value=" - " />
       <h:outputText value="#{item.value}" />

      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.