DisplayTag
  1. DisplayTag
  2. DISPL-221

TableDecorator's bug from 1.0b2 to 1.0rc

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0 RC1, 1.0 RC2, 1.0
    • Fix Version/s: 1.1
    • Component/s: Decorators
    • Labels:
      None
    • Application server:
      Tomcat 4.1.30

      Description

      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????

        Activity

        Hide
        fabrizio giustina added a comment -
        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.
        Show
        fabrizio giustina added a comment - 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.

          People

          • Reporter:
            WenJingQian
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 3 weeks
              3w
              Remaining:
              Remaining Estimate - 3 weeks
              3w
              Logged:
              Time Spent - Not Specified
              Not Specified