[ http://jira.codehaus.org/browse/DISPL-303?page=comments#action_60987 ]
lizongbo commented on DISPL-303:
--------------------------------
we can fix this bug by follow code:
java file :
displaytag-all/displaytag/src/main/java/org/displaytag/pagination/SmartListHelper.java
method need update : getFirstIndexForCurrentPage && getLastIndexForCurrentPage.
new code :
-------------------
public int getFirstIndexForCurrentPage() {
return (this.currentPage - 1) * this.pageSize;
}
protected int getLastIndexForCurrentPage() {
if (this.partialList) {
return (getFirstIndexForCurrentPage()) +
Math.min(this.pageSize - 1, this.fullList.size() - 1);
} else {
return getLastIndexForPage(this.currentPage);
}
}
-------------------
> External paging paging.banner.some_items_found displays 1-10 always
> --------------------------------------------------------------------
>
> Key: DISPL-303
> URL: http://jira.codehaus.org/browse/DISPL-303
> Project: DisplayTag
> Type: Bug
> Components: Paging/Sorting
> Versions: 1.1
> Reporter: Emmanuel
>
>
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel