Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.2
-
Component/s: Paging/Sorting
-
Labels:None
-
Application server:Tomcat 5.0.28
Description
I'm using external paging using , I am not using the interface (first way to do it) just using getting the parameters and sending the partialList to the table.
parameter = request.getParameter ( new ParamEncoder(tableName).encodeParameterName( parameter ) );
the property paging.banner.some_items_found displays 1-10 when I go to the other pages. e.g.
116 items found, displaying 1-10.
Pages: 1 (2) 3 4 5 6 7 8
is there a property or something I need to set in order to show the proper numbers e.g. 20-30
thanks in advance
parameter = request.getParameter ( new ParamEncoder(tableName).encodeParameterName( parameter ) );
the property paging.banner.some_items_found displays 1-10 when I go to the other pages. e.g.
116 items found, displaying 1-10.
Pages: 1 (2) 3 4 5 6 7 8
is there a property or something I need to set in order to show the proper numbers e.g. 20-30
thanks in advance
// return the min of pageSize or list size on the off chance they gave us more data than pageSize allows
return Math.min(this.pageSize - 1, this.fullList.size() - 1);
It seems that these functions are necessary because SmartListHelper.getListForPage() uses both of these methods to determine the "sublist" to display.
However, these numbers do NOT seem appropriate for the "search" banner returned by SmartListHelper.getSearchResultsSummary(). In this method, I think its best to compute the "indices" differently possibly using a combination of the current page and the page size.
Please advise. Thanks,
Kevin