CRUD pagination don't have limit on number of page links
Bug #487003 reported by
Gideon Ray M. Caranzo
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
* crud.pagination
Hope this helps.
Changed in play: | |
status: | New → Confirmed |
Changed in play: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.