You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matthias Keller (JIRA)" <ji...@apache.org> on 2012/08/03 12:35:03 UTC

[jira] [Commented] (WICKET-4153) The tbody section of a DataTable is empty when no records are returned by the provider.

    [ https://issues.apache.org/jira/browse/WICKET-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427972#comment-13427972 ] 

Matthias Keller commented on WICKET-4153:
-----------------------------------------

This bug just bit me too, we do have a filter and we need the table headers etc to be shown but have a message printed below showing that there were no results. Currently it's not possible to style that table correctly (using borders and border-collapse) since it's no valid XHTML and there's a tbody missing. It would be good if this was fixed for the next version!
                
> The tbody section of a DataTable is empty when no records are returned by the provider.
> ---------------------------------------------------------------------------------------
>
>                 Key: WICKET-4153
>                 URL: https://issues.apache.org/jira/browse/WICKET-4153
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.5.1
>            Reporter: Bertrand Guay-Paquet
>            Priority: Trivial
>              Labels: datatable
>         Attachments: DataTable-usePlainTR.diff, DataTable.patch, DataTableTest-usePlainTR.diff, addCenterToolbar.patch, good.png, with_patch.png, without_patch.png
>
>
> 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."

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira