[
https://issues.apache.org/jira/browse/WICKET-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133700#comment-13133700
]
Bertrand Guay-Paquet commented on WICKET-4153:
----------------------------------------------
Yes I understand that and I also agree with Sven's observations. Sorry if I
sounded like that wasn't the case.
However, I still need a way for my tables to look good when they contain no
records. I have an ajax filter above the table so without a fix, the user sees
the table header borders alternatively switching on and off when no records
match the filter. This does not look good at all.
Instead of changing the behavior of NoRecordsToolbar which would change the
behavior of DataTable perhaps too much, how about creating a new type of
NoRecordsToolbar that adds itself to the body of the table? This would be
optional and not change anything to the current DataTable if not used.
> 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
> Fix For: 1.5.3
>
> Attachments: DataTable-usePlainTR.diff, DataTable.patch,
> DataTableTest-usePlainTR.diff, 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