This content has been marked as final.
Show 2 replies
-
1. Re: Problem with EntityQuery + AJAX paging
blabno Oct 7, 2009 11:53 AM (in response to fkj)Source code of query and facelet please. I'm successfully using rich:datascroller and EntityQuery for database pagination.
-
2. Re: Problem with EntityQuery + AJAX paging
fkj Oct 7, 2009 2:29 PM (in response to fkj)I got it working the following way:
TbmotaltList.xhtml:
<a4j:commandButton rendered="#{tbmotaltList.nextExists}" action="#{tbmotaltList.next}" value="Next Page #{messages.right}" reRender="tbmotaltList" />
TbmotaltList.page.xml:
<param name="firstResult" value="#{tbmotaltList.firstResult}"/>
But if I comment the parameter in TbmotaltList.page.xml and add it to the commandButton in TbmotaltList.xhtml it doesn't works:
<a4j:commandButton rendered="#{tbmotaltList.nextExists}" action="#{tbmotaltList.next}" value="Next Page #{messages.right}" reRender="tbmotaltList" > <a4j:actionparam name="firstResult" value="#{tbmotaltList.firstResult}" /> </a4j:commandButton>
Any ideias? I'd like to use only the xhtml file.
In other pages I'd like to use the rich:datascroller component. Could you explain how do you use it too? Did you have to comment setMaxResults() in your EntityQuery?
Thanks a lot,
Felipe