[
https://issues.apache.org/jira/browse/WICKET-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14013493#comment-14013493
]
Martin Grigorov commented on WICKET-5534:
-----------------------------------------
A table with two bodies is OK. The bigger problem would arise when you add some
toolbar to the data table - it will try to add <thead> or <tfoot> to the <tr>
and this will produce invalid HTML.
You can set any attribute to the header by overriding
org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn#getHeader()
for the respective column:
@Override
public Component getHeader(final String componentId)
{
Component header = super.getHeader(componentId);
header.add(AttributeAppender.append("colspan", Model.of("3")));
return header;
}
> DataTable component must throw an exception when attached to non-<table>
> element
> --------------------------------------------------------------------------------
>
> Key: WICKET-5534
> URL: https://issues.apache.org/jira/browse/WICKET-5534
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 6.14.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 7.0.0-M1, 6.15.0
>
>
> As reported in the users@ mailing list -
> http://markmail.org/message/4xkyroiyqt6l4thg
> Same is valid for AbstractToolbar - its root HTML element must be <tr> -
> http://markmail.org/message/nciogmxjdf54rpyo.
--
This message was sent by Atlassian JIRA
(v6.2#6252)