[ http://jira.codehaus.org/browse/DISPL-221?page=all ] fabrizio giustina closed DISPL-221: -----------------------------------
Resolution: Won't Fix Fix Version: 1.1 The current behavior (iterating only on displayed rows) is correct and it will not change anymore. If you need to access the full list now you can do that by using the tableModel exposed to table decorators. > TableDecorator's bug from 1.0b2 to 1.0rc > ---------------------------------------- > > Key: DISPL-221 > URL: http://jira.codehaus.org/browse/DISPL-221 > Project: DisplayTag > Type: Bug > Components: Decorators > Versions: 1.0 RC1, 1.0, 1.0 RC2 > Reporter: WenJingQian > Fix For: 1.1 > > Original Estimate: 3 weeks > Remaining: 3 weeks > > From 1.0rc1 the displaytag use subList to show data in table, the behavior of > TableDecorator has changed, thus cause some bug when use decorator to > caculate the total. > /*as the example, sum the total in finishRow, the plan object is make in > startRow()*/ > public final String finishRow() { > this.priceTotal += plan.getPrice(); > ...... > } > public String startRow() { > plan = (ListStorePlan) getCurrentRowObject(); > return super.startRow(); > } > But from 1.0rc1, the total only sum current page! not the whole list as > worked in 1.0b2. For the 1.0rc support el so I must use new version, but I > have developed many decorator to show static in page, what should I do to > this promblem???? -- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel