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

DataTable should emit empty <tr/> in <tbody> when no entries are available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.5.7
    • None
    • wicket-extensions
    • None

    Description

      DataTable will emit an empty <tbody> when there are no entries to show. However, when using it with a NoRecordsToolbar this will result in a table with only data in thead and tfoot.
      In combination with the css border-collapse: collapse; this will not work for some reason - there must be some data in the tbody for it to work.
      So the tbody should contain at least an empty <tr/> tag instead of nothing if there are no results to show.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tapter Matthias Keller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: