[jboss-user] [JBoss Seam] - Paginator EJB and DataModel

monkeyden do-not-reply at jboss.com
Fri Oct 6 14:04:21 EDT 2006


I have implemented a Paginator SFSB and use it within my Seam action (also SFSB).  I expose the paginator itself to the web layer using @Out.  

Currently, the paginator's collection is annotated with @DataModel, and that works fine for rendering and paginating.  The Seam action has the @DataModelSelection which obviously does not work correctly.  The question I have is, can you annotate using @DataModel and @DataModelSelection in two different classes?

A SFSB Paginator didn't seem right to me so I also thought about extending DataModel for the paginator, and annotating that with @DataModel in the Seam action, which is probably the right way to go.

Thanks for the suggestions.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976657#3976657

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976657



More information about the jboss-user mailing list