[ http://jira.codehaus.org/browse/DISPL-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240716#action_240716 ]
dan moore commented on DISPL-475: --------------------------------- As you state in the bug, the larger issue is that isLastRow() in the TableDecorator has a logical bug. Here's the code I used for my own decorator: public boolean isLastRow() { int rowListSize = tableModel.getRowListPage().size(); int currentIndex = getListIndex(); // so, 149 matches, 99 matches (for row list of 50 return currentIndex % rowListSize == rowListSize - 1; } > MultilevelTotalDecorator - when paging grand total appearing on first page > only > ------------------------------------------------------------------------------- > > Key: DISPL-475 > URL: http://jira.codehaus.org/browse/DISPL-475 > Project: DisplayTag > Issue Type: Bug > Components: Decorators > Affects Versions: 1.1 > Reporter: Kevin Dooley > Fix For: TBD > > > When using MultiLevelTotalDecorator with paging the grand total appears only > at bottom of first page and not at end of report. > This is because in finishRow() the following checkj is used: > if (isLastRow()) > a possible solution could be to use > if (getListIndex() == ((List) getDecoratedObject()).size() - 1) -- 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 ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel