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

        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: