Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4153

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 1.5.1
    • None
    • wicket-extensions

    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."

      Attachments

        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

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

              Dates

                Created:
                Updated:
                Resolved: