CRUD pagination don't have limit on number of page links

Bug #487003 reported by Gideon Ray M. Caranzo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Status tracked in 1.0
1.0
Fix Released
Undecided
Unassigned
1.1
Fix Committed
Undecided
Unassigned

Bug Description

The CRUD list page displays all page links. So if you have thousands of records, you will get hundreds of page links in you CRUD list.
There should be a way to set a limit to the number of links that will be displayed.

Attached here is my fix for the problem. The result will be something like this.

    « Previous First 11 12 13 14 15 16 17 18 19 20 Last Next »

So, if you override the list template, you can set a limit (default is 10) to the pagination tag. Ex. #{crud.pagination limit:20/}

This fix also requires these 2 new properties in the crud "messages" file.
    * crud.pagination.first = First
    * crud.pagination.last = Last

Hope this helps.

Revision history for this message
Gideon Ray M. Caranzo (gideonray) wrote :
Changed in play:
status: New → Confirmed
Changed in play:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.