[
http://jira.codehaus.org/browse/DISPL-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180071#action_180071
]
Harry tang commented on DISPL-620:
----------------------------------
The index starts 0, so the following fix works for me:
if (start >= fullSize)
{
int div = fullSize / this.pagesize;
start = (fullSize % this.pagesize == 0) ? div-1 : div;
}
> Page does not render correctly when keepStatus is used
> ------------------------------------------------------
>
> Key: DISPL-620
> URL: http://jira.codehaus.org/browse/DISPL-620
> Project: DisplayTag
> Issue Type: Bug
> Components: Paging/Sorting
> Affects Versions: 1.2
> Reporter: Harry tang
>
> 1. Use keepStatus="true" for a table in jsp, assume page size=20
> 2. Add 21 records to the table
> 3. Delete the only record on page 2
> -> The columns with image does not render at all.
> in TableTag.java, line 1102
> if (start > fullSize)
> {
> int div = fullSize / this.pagesize;
> start = (fullSize % this.pagesize == 0) ? div : div + 1;
> }
> should become
> if (start >= fullSize)
> {
> int div = fullSize / this.pagesize;
> start = (fullSize % this.pagesize == 0) ? div : div + 1;
> }
--
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
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel