You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sachin <sa...@gmail.com> on 2007/07/18 15:53:38 UTC
Group Total
Hi ,
Here is an exmaple to get total value in footer. But i need to get this
value inside table for each grouped items as a separate column in the table.
<display:table name="someList" varTotals="totals">
<display:column property="itemName" group="1" />
<display:column property="price" total="true"/>
<display:footer>
<tr>
<td>Total Bill:</td>
<td><c:out value="${totals.column2}" /></td>
<tr>
</display:footer>
</display:table>
Please help me on this. Is there any alternat way to do this without
using *total
*and *varTotal* attributes.
--
Satheesh.c
Re: Fwd: Group Total
Posted by Thomas Ramapuram <th...@gmail.com>.
Try Decorators.
You will have to write java code and add the code as a decorator to
your table.
Just look up the documentation in Dispyay tags.
Regards,
Thomas
Sachin wrote:
> Here is a clear pic of my doubt.
>
> <thead>
> * header row*
> </thead>
>
> <tbody>
> * columns *
> **** group-total row **** <--- *how to get this?* --->
> </tbody>
>
> <tfooter>
> * grand-total row*
> </tfooter>
>
> Regards.
> Satheesh.C
>
>
> ---------- Forwarded message ----------
> From: Sachin <sa...@gmail.com>
> Date: Jul 18, 2007 9:53 AM
> Subject: Group Total
> To: Struts Users Mailing List <us...@struts.apache.org>
>
>
>
> Hi ,
>
> Here is an exmaple to get total value in footer. But i need to get this
> value inside table for each grouped items as a separate row in the table.
>
> <display:table name="someList" varTotals="totals">
> <display:column property="itemName" group="1" />
> <display:column property="price" total="true"/>
> <display:footer>
> <tr>
> <td>Total Bill:</td>
> <td><c:out value="${totals.column2}" /></td>
> <tr>
> </display:footer>
> </display:table>
>
> Please help me on this. Is there any alternat way to do this without
> using *total
> *and *varTotals* attributes.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Fwd: Group Total
Posted by Sachin <sa...@gmail.com>.
Here is a clear pic of my doubt.
<thead>
* header row*
</thead>
<tbody>
* columns *
**** group-total row **** <--- *how to get this?* --->
</tbody>
<tfooter>
* grand-total row*
</tfooter>
Regards.
Satheesh.C
---------- Forwarded message ----------
From: Sachin <sa...@gmail.com>
Date: Jul 18, 2007 9:53 AM
Subject: Group Total
To: Struts Users Mailing List <us...@struts.apache.org>
Hi ,
Here is an exmaple to get total value in footer. But i need to get this
value inside table for each grouped items as a separate row in the table.
<display:table name="someList" varTotals="totals">
<display:column property="itemName" group="1" />
<display:column property="price" total="true"/>
<display:footer>
<tr>
<td>Total Bill:</td>
<td><c:out value="${totals.column2}" /></td>
<tr>
</display:footer>
</display:table>
Please help me on this. Is there any alternat way to do this without
using *total
*and *varTotals* attributes.
--
Satheesh.c
--
Satheesh.c
Fwd: Group Total
Posted by Sachin <sa...@gmail.com>.
Any help would be greatly appreciated ... pls..
---------- Forwarded message ----------
From: Sachin <sa...@gmail.com>
Date: Jul 18, 2007 10:03 AM
Subject: Re: Group Total
To: Struts Users Mailing List <us...@struts.apache.org>
sorry for the typo.
I need the group total value in separate row in the table for each grouped
item.
Please help me on this.
On 7/18/07, Sachin <sa...@gmail.com> wrote:
>
>
> Hi ,
>
> Here is an exmaple to get total value in footer. But i need to get this
> value inside table for each grouped items as a separate column in the table.
>
> <display:table name="someList" varTotals="totals">
> <display:column property="itemName" group="1" />
> <display:column property="price" total="true"/>
> <display:footer>
> <tr>
> <td>Total Bill:</td>
> <td><c:out value="${totals.column2}" /></td>
> <tr>
> </display:footer>
> </display:table>
>
> Please help me on this. Is there any alternat way to do this without using
> *total *and *varTotal* attributes.
>
>
>
> --
> Satheesh.c
>
--
Satheesh.c
--
Satheesh.c
Re: Group Total
Posted by Sachin <sa...@gmail.com>.
sorry for the typo.
I need the group total value in separate row in the table for each grouped
item.
Please help me on this.
On 7/18/07, Sachin <sa...@gmail.com> wrote:
>
>
> Hi ,
>
> Here is an exmaple to get total value in footer. But i need to get this
> value inside table for each grouped items as a separate column in the table.
>
> <display:table name="someList" varTotals="totals">
> <display:column property="itemName" group="1" />
> <display:column property="price" total="true"/>
> <display:footer>
> <tr>
> <td>Total Bill:</td>
> <td><c:out value="${totals.column2}" /></td>
> <tr>
> </display:footer>
> </display:table>
>
> Please help me on this. Is there any alternat way to do this without using
> *total *and *varTotal* attributes.
>
>
>
> --
> Satheesh.c
>
--
Satheesh.c