[ http://jira.codehaus.org/browse/DISPL-199?page=history ]
andy pruitt resolved DISPL-199:
-------------------------------
Fix Version: 1.1
Resolution: Fixed
This is already present in HEAD. total="true" on the column, results are
viewable in the footer via a pageContext variable. Custom convertors to
translate from String to double.
> Column Summation
> ----------------
>
> Key: DISPL-199
> URL: http://jira.codehaus.org/browse/DISPL-199
> Project: DisplayTag
> Type: New Feature
> Components: Paging/Sorting
> Reporter: Andrew Festa
> Priority: Minor
> Fix For: 1.1
>
>
> It would be nice to have columns automatically sum without using a
> TableDecorator. Something like this:
> <display:table summation="true" sumTitle="Total">
> <display:column property="name" title="Item Label" />
> <display:column property="value1" title="Value 1" sort="true" />
> <display:column property="value2" title="Value 2" sort="true" />
> </display:table>
> And that will generate a table like so:
> (Forgive my sloppy HTML...)
> <table>
> <tr><th>Item Label</th><th>Value 1</th><th>Value 2</th></tr>
> <tr><td>Item 1</td><td>1</td><td>2</td></tr>
> <tr><td>Item 2</td><td>3</td><td>4</td></tr>
> <tr class="totalsRow"><td>Total</td><td>3</td><td>6</td></tr>
> </table>
> This could also be extended to provide properties that would determine
> whether the entire collection or just the visible page was totalled.
> Another feature would be an extention of the TableDecorator class so you
> could decorate each column of the Total Row. (ie getTotalValue1())
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel