Hi,
I've done it with a footer.
The code is like this:
<display:table ...>
<display:column .../>
<display:column .../>
<display:column .../>
<display:footer>
<tr>
<td><bean:write name="overview" property="total1" /></td>
<td><bean:write name="overview" property="total2" /></td>
<td><bean:write name="overview" property="total3" /></td>
</tr>
</display:footer>
</display:table>
You can put html inside the footer. That html code will depend of course on the nr. of columns and style of the table.
In this particular example, I have 3 columns in the table and the results of the three totals (1 per column) are stored in "overview".
regards,
Miro
-----Original Message-----
From: Daniel Cricco [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 4 augustus 2006 16:54
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] Custom subtotal
Sorry for insisting, but I'm still unable to resolve the problem.
I have a column, whose total is not the sum of each row. I know the
value of the total, so instead to let display:tag compute the total I
want to set it explicitly. How can I do it?
Help would be very appreciated.
Dani Cricco
On 8/3/06, Daniel Cricco <[EMAIL PROTECTED]> wrote:
> I have a <display:table> with a TotalTableDecorator (subtotals and
> totals available).
> I want to customize one of the subtotals ( display tag must not
> calculate it, I want to submit the value).
>
> How can I do it? Should I extends the TotalTableDecorator? (which
> method should I override).
>
> Thanks,
>
> Daniel Cricco
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user