Announcement Announcement Module
Collapse
No announcement yet.
Pagination on list Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Still looking for any help on the above issue. Since I am using Grails first time, I am little confused to find the issue.

    Comment


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

      Comment

      Working...
      X