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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user