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

  • dmfrey
    started a topic Generate Finders with MaxRows?

    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?

  • Harald Walker
    replied
    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.

    Leave a comment:


  • Stefan Schmidt
    replied
    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

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:

Working...
X