0 Replies Latest reply on Jan 4, 2008 9:58 AM by Alex Alvarez

    Using a commandLink with tomahawk tree2

    Alex Alvarez Newbie


      I am using myfaces1.1.5 with tomahawk1.1.6, using facelets and JBoss Portal 2.6.3

      I have a t:tree2 component where each node has an embedded commandLink. Here is the code:

      <t:tree2 id="serverTree" value="#{editUser.treeData}" var="node" varNodeToggler="t" clientSideToggle="false" showNav="true" imageLocation="/images">
      <f:facet name="dynamic-folder">
      <h:commandLink immediate="true" action="#{t.toggleExpanded}" actionListener="#{editUser.expandDynamicFolder}">
      <t:graphicImage value="/images/folder-open.png" rendered="#{t.nodeExpanded}" />
      <t:graphicImage value="/images/folder.png" rendered="#{!t.nodeExpanded}" />
      <h:outputText value="#{node.description}" styleClass="nodeFolder"/>


      I was able to click in the nodes and launch the commandLink action before i switched to Facelets. Now it doesn't work or it works on the first or second request and then nothing... If I look at the request parameters I see that the selected Node is there but the component doesn't seem to be able to decode it....

      Parameters[docNum=1 | org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=/WEB-INF/jsf/userAdmin.xhtml | _id15jbpns_2fSmartPortal_2fdefault_2f35snpbj_SUBMIT=1 | _id15jbpns_2fSmartPortal_2fdefault_2f35snpbj:_link_hidden_= | _id15jbpns_2fSmartPortal_2fdefault_2f35snpbj:_idcl=_id15jbpns_2fSmartPortal_2fdefault_2f35snpbj:

      Any ideas?