Is it possible to generate finders that implement paging using the firstrow and maxrows methods on the query object in roo?
Is it possible to generate finders that implement paging using the firstrow and maxrows methods on the query object in roo?
Nevermind, I missed the find<type>Entries already generated by Roo.
Actually, I still do need to create custom finders based on this format. What is the preferred method of creating custom finders?
Paging is currently not supported for finders. However, it should be easy to retrofit by just taking a look at how this is done for the list method in the controller and the pagination.tagx. If you think it is a MUST then please log a Jira ticket on it and vote![]()
Stefan Schmidt
Software Engineer, Spring Roo
SpringSource - a division of VMware
twitter @schmidtstefan
I changed pagination.tagx like this:
This way any sort of finder list page or list page with additional parameters should work with pagination.HTML Code:<spring:url value="" var="next"> <spring:param name="page" value="${page + 1}" /> <spring:param name="size" value="${size}" /> <c:forEach var="requestParameter" items="${param}"> <c:if test="${requestParameter.key != 'page' and requestParameter.key != 'size'}"> <spring:param name="${requestParameter.key}" value="${requestParameter.value}" /> </c:if> </c:forEach> </spring:url>