0 Replies Latest reply on Sep 24, 2007 7:24 AM by jbeaken

    Embedded s:link in a rich:tree

    jbeaken

      Hi,

      using seam 1.2.1GA, jboss 4.2.1, richfaces 3.1.0.

      Upon using a rich:tree, I wish to embedd an s:link with an action that takes a method parameter. The method parameter is derived from the current treerow, declared from the var="item" attribute, like :

      <rich:tree style="width:300px" switchType="ajax">
       <rich:recursiveTreeNodesAdaptor roots="#{listUsersFoldersService.folderTree}" var="item" nodes="#{item.childFoldersAsArray}">
       <rich:treeNode>
       <h:outputText value="#{item.name}"/>
       <h:outputText value="#{item.id}"/>
       <s:link action="#{viewFolderService.view(item.id)}">
       <img class="listiconfix" title="..: VIEW :.." src="assets/images/view_icon.png" alt="..: VIEW :.." />
      </s:link>
      </rich:treeNode>
      .......


      The <h:outputText value="#{item.id}"/> outputs the correct id, but the
      <s:link action="#{viewFolderService.view(item.id)}">
      always passes a null id,

      anybody got any ideas, can you not use the assigned variable this way?

      thanks