[jboss-user] [JBoss Seam] - Embedded s:link in a rich:tree
jbeaken
do-not-reply at jboss.com
Mon Sep 24 07:24:45 EDT 2007
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087843#4087843
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087843
More information about the jboss-user
mailing list