Hi all,
I want to use a datatable element and render it as an HTML table
element, following some rules which provide accessibility. As you may
know accessibility rules demand a caption rendered for each HTML table,
and some attributes rendered for each cell of the table.
Concerning the caption issue it's not supported by myfaces.
As far as the attributes in the table's cells are concerned, I need to
have an html output which will look like that:
<table>
<caption>
Results sorted by Rating
</caption>
<thead>
<tr>
<th id="h_cat">Category</th>
<th id="h_city">City</th>
<th id="h_count">Country</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="h_cat">Hotel</td>
<td headers="h_city">Berlin</td>
<td headers="h_count">Germany</td>
</tr>
<tr>
<td headers="h_cat">Shop</td>
<td headers="h_city">Madrit</td>
<td headers="h_count">Spain</td>
</tr>
...
</tbody>
</table>
Can anyone help me with the attributes issue? Is there a way to insert a
custom tag in the td element with myfaces?
Regards
Elenh