[ http://jira.codehaus.org/browse/DISPL-199?page=all ] fabrizio giustina closed DISPL-199: -----------------------------------
Resolution: Fixed added new decorator for automatic display of totals. Documentation updated for 1.1 > 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 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel