DisplayTag
  1. DisplayTag
  2. DISPL-236

Using TotalWrapper for callbacks giving wrong results.

    Details

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

      Description

      using callbacks to get totals i.e TotalWrapper.java in sample package which extends TableDecorator.java is giving wrong results. if a single group is spanned across 2 pages and we are aggregating at that group level. the total for the 2nd page is shown without considering the total in the previous page.
      1. disp.doc
        110 kB
        gopi krishna kolla

        Activity

        Hide
        gopi krishna kolla added a comment -
        the update contains a screenshot followed by the code that i had used which is giving me wrong results.
        Show
        gopi krishna kolla added a comment - the update contains a screenshot followed by the code that i had used which is giving me wrong results.
        Hide
        fabrizio giustina added a comment -
        Table decorators only iterates on row currently displayed, so that's the expected behavior.
        If you want to calculate totals on the full list you can do that by accessing the table model, available in table decorators from displaytag 1.1.
        Show
        fabrizio giustina added a comment - Table decorators only iterates on row currently displayed, so that's the expected behavior. If you want to calculate totals on the full list you can do that by accessing the table model, available in table decorators from displaytag 1.1.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: