[
https://issues.apache.org/jira/browse/WICKET-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14013451#comment-14013451
]
David vandendriessche commented on WICKET-5534:
-----------------------------------------------
Hello,
This new behaviour seems ok but it has broken some tables in my application.
I was using the DataTable on the <tr> element in the <tbody> in stead of the
<table>.
The reason I did this was because I wanted to specify rowspan and colspan in
the <thead> myself. Now I keep on getting this error message. I've found no
other way to use the datatable without losing the <thead> structure.
How should I solve this problem? Should I be using a different
repeater?(ListView?)
Example(I don't know how to add format code in jira):
<table>
<thead>
<tr>
<th rowspan="2"><wicket:message key="LBL_NAME"/></th>
<th rowspan="2"><wicket:message key="LBL_SURNAME"/></th>
<th colspan="2"><wicket:message key="LBL_NUMBER"/></th>
<th colspan="2"><wicket:message
key="LBL_DURATION"/></th>
</tr>
<tr>
<th><wicket:message key="LBL_FROM"/></th>
<th><wicket:message key="LBL_UNTIL"/></th>
<th><wicket:message key="LBL_START"/></th>
<th><wicket:message key="LBL_END"/></th>
</tr>
</thead>
<tbody>
<tr wicket:id="personDetails"> <!-- This doesn't work
anymore in wicket 6.15 add(new DataTable("personDetails",...-->
</tr>
</tbody>
</table>
> 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)