Roberto Leiva M. (Lista) wrote:
Roberto Leiva M. wrote:
hi! i use displaytag 1.1
My report have a two group and when i display this report (full-list
'no paging'), i see the total by group and total general without
problem, but when i add paging ( for example pagesize="xx" ), i only
see the first total group, and didn't see total in second group and
final total.
** Example full-list (no paging):
Area | Cod | num
---- --------------- --------------
a1 | aa | 3 | bb | 2
| cc | 1
subtot 6 a2 | |
dd 2
jj 3
subtot 5
total 11
** example paging-list ERROR!!!
Area | Cod | num
---- --------------- --------------
a1 | aa | 3 | bb | 2
| cc | 1
subtot 6 a2 | |
dd 2
jj 3
[ NO TOTALS!!! ]
the problem was in TotalTableDecorator.java on method finishRow().
preview fixed:
if (getViewIndex() == ((List) getDecoratedObject()).size() - 1){
replace with:
if (getListIndex() == ((List) getDecoratedObject()).size() - 1){
When we use paging (pagesize="xx") getViewIndex never is equal to total list size, getViewIndex only
return the number the elements displayed.
i hope that this fixed is published.
regards.
--
Roberto Leiva M.
Santiago - Chile
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user