[jboss-user] [JBoss Seam] - EL enhancement of parameters working?
dandiodati
do-not-reply at jboss.com
Thu Dec 21 22:18:14 EST 2006
Hi was trying out the s:link tag and noticed that it did not support actionListener events(By the way will this be supported?) So I noticed that
you can pass parameters to methods since seam adds some enhancements to
EL. When trying it I end up getting a null parameter passed into my getAction method. Here is the code segment:
<c:forEach items="#{TopNavViewHelper.navBar}" var="item">
| <c:set var="navItemStyle" value=""/>
| <c:if test="#{item.name == TopNavViewHelper.selectedName}">
| <c:set var="navItemStyle" value="selected"/>
| </c:if>
|
| <li class="#{navItemStyle}" id="#{item.name}" >
| <s:link id="#{item.name}" title="#{item.descr}" action="#{TopNavViewHelper.getAction(item.name)}" actionListener="#{TopNavViewHelper.clicked}"><span>#{item.label}</span>
| </s:link>
| <div>
| <ul/>
| </div>
| </li>
| </c:forEach>
The item.name in the getAction method call ends up being null instead
of have the name of the item. Does this not work within forEach loops?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995767#3995767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995767
More information about the jboss-user
mailing list