[jboss-user] [JBoss Seam] - Re: Inject messages into JavaBean
do-not-reply at jboss.com
Thu Mar 8 12:41:47 EST 2007
How do you instantiate DefaultPaginator?
By way of a constructor. Do I need to inject it instead, to make use of some Seam recursive injection facility?
Ensure that your messages.properties is in the appropriate location (usually WEB-INF/classes)
Yep, i18n works with EL in session beans and facelets.
...make sure your Log type is of org.jboss.seam.log.Log (not the commons version)
Yep, it's a Seam Log.
Here is the signature:
public DefaultPaginator(String name, PageProvider owner, List keySet, int rowsPerPage)
owner - the owner of the paginator. Implements callbacks for the paginator to use to load, as objects, subsets of keySet.
name - the unique identifier of the paginator, in case there is more than 1 in a single Action. Used when the paginator calls:
owner.loadPage(String name, List keys)
List - complete list of primary keys
I'll check out injection of it and call mutators for everything.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026342#4026342
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026342
More information about the jboss-user