-
Dec 20th, 2011, 10:26 AM
#1
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>
<g
aginate 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
-
Dec 20th, 2011, 12:27 PM
#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.
-
Dec 21st, 2011, 08:34 AM
#3
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
-
Forum Rules