[ http://jira.codehaus.org/browse/DISPL-199?page=comments#action_45500 ]
Andrew Festa commented on DISPL-199: ------------------------------------ I'm sorry if I'm not quite understanding you, but what is head? > 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel