[jboss-user] [JBoss Seam] - Re: EntityQuery pagination

norman.richards@jboss.com do-not-reply at jboss.com
Mon Dec 11 12:24:31 EST 2006


Are you asking how to make your event scoped query be conversation/session scoped like a stateful component?  If so, look at the @Scope annotation.  (or the scope attribute on the xml)

If you want to stay in the EVENT scope with your query, try adding using a more dynamic value.  This works best from components.xml:  max-results="#{someSessionObject.maxResults}"

Or, you could add the max results as a request paramter:

  |     <page view-id="/search.xhtml">
  |           <param name="howmany" value="#{yourQuery.maxResults}" />
  |    </page>
  | 

I'm not sure what way fits your app best.



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

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



More information about the jboss-user mailing list