Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Component/s: Paging/Sorting
-
Labels:None
Description
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;
}
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;
}
if (start >= fullSize)
{
int div = fullSize / this.pagesize;
start = (fullSize % this.pagesize == 0) ? div-1 : div;
}