Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0 RC1, 1.0 RC2, 1.0
-
Fix Version/s: 1.1
-
Component/s: Decorators
-
Labels:None
-
Application server:Tomcat 4.1.30
Description
From 1.0rc1 the displaytag use subList to show data in table, the behavior of TableDecorator has changed, thus cause some bug when use decorator to caculate the total.
/*as the example, sum the total in finishRow, the plan object is make in startRow()*/
public final String finishRow() {
this.priceTotal += plan.getPrice();
......
}
public String startRow() {
plan = (ListStorePlan) getCurrentRowObject();
return super.startRow();
}
But from 1.0rc1, the total only sum current page! not the whole list as worked in 1.0b2. For the 1.0rc support el so I must use new version, but I have developed many decorator to show static in page, what should I do to this promblem????
/*as the example, sum the total in finishRow, the plan object is make in startRow()*/
public final String finishRow() {
this.priceTotal += plan.getPrice();
......
}
public String startRow() {
plan = (ListStorePlan) getCurrentRowObject();
return super.startRow();
}
But from 1.0rc1, the total only sum current page! not the whole list as worked in 1.0b2. For the 1.0rc support el so I must use new version, but I have developed many decorator to show static in page, what should I do to this promblem????