Wicket
  1. Wicket
  2. WICKET-4153

The tbody section of a DataTable is empty when no records are returned by the provider.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: wicket-extensions
    • Labels:

      Description

      When a DataTable is rendered without records, the tbody section is empty. This violates the html spec.

      From the spec:
      "When present, each THEAD, TFOOT, and TBODY contains a row group. Each row group must contain at least one row, defined by the TR element."
      and
      "The THEAD, TFOOT, and TBODY sections must contain the same number of columns."

      1. DataTable.patch
        16 kB
        Bertrand Guay-Paquet
      2. good.png
        4 kB
        Bertrand Guay-Paquet
      3. with_patch.png
        2 kB
        Bertrand Guay-Paquet
      4. without_patch.png
        2 kB
        Bertrand Guay-Paquet
      5. DataTable-usePlainTR.diff
        2 kB
        Sander Plas
      6. DataTableTest-usePlainTR.diff
        1 kB
        Sander Plas
      7. addCenterToolbar.patch
        2 kB
        Sander Plas

        Issue Links

          Activity

          Martin Grigorov made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Martin Grigorov made changes -
          Link This issue is duplicated by WICKET-4692 [ WICKET-4692 ]
          Martin Grigorov made changes -
          Fix Version/s 1.5.3 [ 12318550 ]
          Sander Plas made changes -
          Attachment addCenterToolbar.patch [ 12500449 ]
          Sander Plas made changes -
          Attachment DataTable-usePlainTR.diff [ 12500323 ]
          Attachment DataTableTest-usePlainTR.diff [ 12500324 ]
          Sven Meier made changes -
          Assignee Sven Meier [ svenmeier ]
          Bertrand Guay-Paquet made changes -
          Attachment good.png [ 12500204 ]
          Attachment with_patch.png [ 12500205 ]
          Attachment without_patch.png [ 12500206 ]
          Sven Meier made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Sven Meier made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Sven Meier [ svenmeier ]
          Fix Version/s 1.5.3 [ 12318550 ]
          Resolution Fixed [ 1 ]
          Igor Vaynberg made changes -
          Priority Minor [ 4 ] Trivial [ 5 ]
          Martin Grigorov made changes -
          Link This issue duplicates WICKET-4142 [ WICKET-4142 ]
          Bertrand Guay-Paquet made changes -
          Field Original Value New Value
          Attachment DataTable.patch [ 12499858 ]
          Bertrand Guay-Paquet created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Bertrand Guay-Paquet
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development