Results 1 to 3 of 3

Thread: Pagination on list

  1. #1
    Join Date
    Jun 2011
    Posts
    29

    Default Pagination on list

    Hi All,

    I am trying to do pagination on list, where my list contains list of files from a directory . There is no GORM here.

    [ JobLists : fileResourceInstanceList, totalFiles:fileResourceInstanceList.size() ]

    <g:each in="${JobLists}" status="i" var="job">
    <tr onmouseover="this.style.backgroundColor='#d4e3e5'; "
    onmouseout="this.style.backgroundColor='#f7fbfc';" >
    <td><g:formatDate format="yyyy-MM-dd"
    date="${job.processDate}" /></td>
    <td>
    ${job?.noOfFailedAuthorization}
    </td>
    <td>
    ${job?.noOfSuccessAuthorizaton}
    </td>
    <td>
    ${job?.noOfProcessingAuthorizaton}
    </td>
    </tr>
    </g:each>
    </table>
    <gaginate controller="jobs" action="show" total="${totalFiles}" max="3" />

    now i am UI, I can see all the files listing in the table without and pagination. but I can see the pagination links down after the table and each whenever i click its executing the show action but dispalying the entire list.

    Since this is my first Grails application, I am little confusing how to configure pagination for list.

    Thanks,
    Ben

  2. #2
    Join Date
    Jun 2011
    Posts
    29

    Default

    Still looking for any help on the above issue. Since I am using Grails first time, I am little confused to find the issue.

  3. #3
    Join Date
    Jun 2011
    Posts
    29

    Default

    Thanks to all, its working, there was an issue will setting max and offset..Thanks for looking in to this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •