Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1.1
-
Component/s: Paging/Sorting
-
Labels:None
Description
The External Paging and Sorting documentation (http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html) refers to following line to be added to get the starting record in external paging.
(Integer.parseInt(request.getParameter((new ParamEncoder(tableId).encode(TableTagParameters.PARAMETER_ORDER)))) - 1) * pageSize
Instead of 'PARAMETER_ORDER', 'PARAMETER_PAGE' should be used.
(Integer.parseInt(request.getParameter((new ParamEncoder(tableId).encode(TableTagParameters.PARAMETER_ORDER)))) - 1) * pageSize
Instead of 'PARAMETER_ORDER', 'PARAMETER_PAGE' should be used.