|
Hi All,
Any help on the following issue would be appreciated.
I am overriding finishrow() of the TableDecorator class in displaytag, just like in TotalWrapper in sample package to find the totals.
But my problem is say if a similar group is spanned in two pages the total is displayed for only those rows in the second page.
Ex: Dname Job Ename Sal ---------------------------------------------------------------------------------- SALES CLERK JAMES 950.0 MANAGER BLAKE 2850.0
This is in one page followed by
Dname Job Ename Sal ----------------------------------------------------------------------------------
SALES SALESMAN ALLEN 1600.0 MARTIN 1250.0 TURNER 1500.0 WARD 1250.0 ------------------- SALES Total 5600.0
This is in second page.
I am doing the aggregation or calculating the total of salary based on each department i.e sales here. But the SALES Total is displayed as 5600.0 excluding the two rows in the first page. i.e 950.0 and 2850.0 are being missed.
How to solve this problem.
Thanks in advance, Gopi krishna kolla.
|

