This content has been marked as final.
Show 2 replies
-
1. Re: EntityQuery pagination
norman.richards Dec 11, 2006 12:24 PM (in response to rsmol)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. -
2. Re: EntityQuery pagination
gavin.king Dec 13, 2006 12:42 PM (in response to rsmol)Why not just call setMaxResults in the constructor? Or, you can override the @Create method and do it there.