DisplayTag
  1. DisplayTag
  2. DISPL-620

Page does not render correctly when keepStatus is used

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 2.0
    • Component/s: Paging/Sorting
    • Labels:
      None

      Description

      1. Use keepStatus="true" for a table in jsp, assume page size=20
      2. Add 21 records to the table
      3. Delete the only record on page 2
      -> The columns with image does not render at all.

      in TableTag.java, line 1102

      if (start > fullSize)
       {
                int div = fullSize / this.pagesize;
                start = (fullSize % this.pagesize == 0) ? div : div + 1;
      }
      should become
      if (start >= fullSize)
       {
                int div = fullSize / this.pagesize;
                start = (fullSize % this.pagesize == 0) ? div : div + 1;
      }

        Activity

        Hide
        Harry tang added a comment -
        The index starts 0, so the following fix works for me:

        if (start >= fullSize)
         {
                            int div = fullSize / this.pagesize;
                            start = (fullSize % this.pagesize == 0) ? div-1 : div;
         }
        Show
        Harry tang added a comment - The index starts 0, so the following fix works for me: if (start >= fullSize)  {                     int div = fullSize / this.pagesize;                     start = (fullSize % this.pagesize == 0) ? div-1 : div;  }
        Hide
        fabrizio giustina added a comment -
        already solved in svn
        Show
        fabrizio giustina added a comment - already solved in svn

          People

          • Reporter:
            Harry tang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: