[jboss-user] [JBoss Seam] - Template and Nested EL Expresssion
trossmy
do-not-reply at jboss.com
Tue Oct 2 08:26:50 EDT 2007
I have several managed beans that lookup a list of database records and implement an Interface (SeamAction) with one method public void find() . In order to provide paging for the results I would like to have a template like this:
| <s:link action="#{seamAction.find}" rendered="#{previousExists}"
| value="||" id="firstPage">
| <f:param name="firstResult" value="0" />
| </s:link>
| <s:link action="#{seamAction.find}" rendered="#{previousExists}"
| id="previousPage">
| <h:graphicImage id="previous" alt="previous" url="/images/arr-l.gif">
| </h:graphicImage>
| <f:param name="firstResult" value="#{previousFirstResult}" />
| </s:link>
| <s:link action="#{seamAction.find}" rendered="#{nextExists}"
| id="nextPage">
| <h:graphicImage id="next" alt="next" url="/images/arr-r.gif">
| </h:graphicImage>
| <f:param name="firstResult" value="#{nextFirstResult}" />
| </s:link>
| <s:link action="#{seamAction.find}" rendered="#{nextExists}" value="||"
| id="lastPage">
| <f:param name="firstResult" value="#{lastFirstResult}" />
| </s:link>
|
However if I use the template in a page like this (myAction is an implementation of the SeamAction interface, with
@Name("myAction")
@Scope(ScopeType.CONVERSATION) )
:
| <ui:include src="fragments/tableControl.jspx"rendered="#{resultList.rowCount gt 0}">
| <ui:param name="seamAction" value="#{myAction}" />
| </ui:include>
|
|
the action 'seamAction' is not found.
Somebody knows how to get it running (I'm using seam 1.2.1GA)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090608#4090608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090608
More information about the jboss-user
mailing list