[ http://jira.codehaus.org/browse/DISPL-304?page=comments#action_61123 ]
Kevin Conaway commented on DISPL-304: ------------------------------------- I am experiencing this issue as well. From what I can see, the cause of the issue is in SmartListHelper.getFirstIndexForPage(). If partiaList is true, this function will always return 0. Similarly, SmartListHelper.getLastIndexForPage() returns the page size. The comment inside getLastIndexForPage() is: // 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 > External paging paging.banner.some_items_found displays 1-10 in the second > page (other pages as well) > ------------------------------------------------------------------------------------------------------ > > Key: DISPL-304 > URL: http://jira.codehaus.org/browse/DISPL-304 > Project: DisplayTag > Type: Bug > Components: Paging/Sorting > Versions: 1.1 > Reporter: Emmanuel > Fix For: 1.1.1 > > > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel