Update of /cvsroot/displaytag/displaytag/src/org/apache/taglibs/display/test
In directory sc8-pr-cvs1:/tmp/cvs-serv12354/src/org/apache/taglibs/display/test

Modified Files:
        TotalWrapper.java 
Log Message:
Fixed [ 737152 ] Sorting with callbacks subtotal problem.

Index: TotalWrapper.java
===================================================================
RCS file: 
/cvsroot/displaytag/displaytag/src/org/apache/taglibs/display/test/TotalWrapper.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TotalWrapper.java   12 Jun 2003 17:22:17 -0000      1.2
--- TotalWrapper.java   12 Jun 2003 17:41:21 -0000      1.3
***************
*** 1,8 ****
- /**
-  * $Id$
-  *
-  * Status: Ok
-  **/
- 
  package org.apache.taglibs.display.test;
  
--- 1,2 ----
***************
*** 11,17 ****
  /**
   * This decorator only does a summing of different groups in the reporting
!  * style examples...
!  **/
! 
  public class TotalWrapper extends Decorator {
      private double cityTotal = 0;
--- 5,12 ----
  /**
   * This decorator only does a summing of different groups in the reporting
!  * style examples.
!  *
!  * @version $Revision$
!  */
  public class TotalWrapper extends Decorator {
      private double cityTotal = 0;
***************
*** 22,26 ****
       * new total line and summing the results from the previous group.
       */
- 
      public String finishRow() {
          int listindex = this.getList().indexOf(this.getObject());
--- 17,20 ----
***************
*** 55,59 ****
  
          // Grand totals...
!         if (listindex == this.getList().size() - 1) {
              sb.append("<tr><td colspan=\"4\"><hr noshade size=\"1\"></td></tr>");
              sb.append("<tr><td>&nbsp;</td>");
--- 49,53 ----
  
          // Grand totals...
!         if (this.getViewIndex() == this.getList().size() - 1) {
              sb.append("<tr><td colspan=\"4\"><hr noshade size=\"1\"></td></tr>");
              sb.append("<tr><td>&nbsp;</td>");
***************
*** 65,69 ****
          return sb.toString();
      }
- 
- 
  }
--- 59,61 ----




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to