Announcement Announcement Module
Collapse
No announcement yet.
Generate Finders with MaxRows? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generate Finders with MaxRows?

    Is it possible to generate finders that implement paging using the firstrow and maxrows methods on the query object in roo?

  • #2
    Nevermind, I missed the find<type>Entries already generated by Roo.

    Comment


    • #3
      Actually, I still do need to create custom finders based on this format. What is the preferred method of creating custom finders?

      Comment


      • #4
        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

        Comment


        • #5
          Originally posted by Stefan Schmidt View Post
          and the pagination.tagx.
          I changed pagination.tagx like this:

          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>
          This way any sort of finder list page or list page with additional parameters should work with pagination.

          Comment

          Working...
          X