Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: Documentation
-
Labels:None
-
Application server:n/a
Description
The documentation for external sorting / partial lists indicates the following line of code should be used to determine the specific page that the displaytag has passed back to the request:
To determine the starting record you need to return based on the request parameters provided via Display Tag you can do:
(Integer.parseInt(request.getParameter((new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_ORDER)))) - 1) * pageSize
I believe the correct parameter should be:
(Integer.parseInt(request.getParameter((new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_PAGE)))) - 1) * pageSize
To determine the starting record you need to return based on the request parameters provided via Display Tag you can do:
(Integer.parseInt(request.getParameter((new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_ORDER)))) - 1) * pageSize
I believe the correct parameter should be:
(Integer.parseInt(request.getParameter((new ParamEncoder(tableId).encodeParameterName(TableTagParameters.PARAMETER_PAGE)))) - 1) * pageSize