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 RC2, 1.0    
    Reporter: WenJingQian


>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: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to