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: Reopened
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • 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. without_patch.png
        2 kB
        Bertrand Guay-Paquet
      2. with_patch.png
        2 kB
        Bertrand Guay-Paquet
      3. good.png
        4 kB
        Bertrand Guay-Paquet
      4. DataTable-usePlainTR.diff
        2 kB
        Sander Plas
      5. DataTableTest-usePlainTR.diff
        1 kB
        Sander Plas
      6. DataTable.patch
        16 kB
        Bertrand Guay-Paquet
      7. addCenterToolbar.patch
        2 kB
        Sander Plas

        Issue Links

          Activity

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

            People

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

              Dates

              • Created:
                Updated:

                Development