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

            People

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

              Dates

              • Created:
                Updated:

                Development