Skip to main content

JSF datatable help

1 reply [Last post]
mpiazza
Offline
Joined: 2011-12-14
Points: 0

Hello all.

I'm developing a web page compliant with WCAG 2.0 accessibility requirements. In this page I have a datatable and I need to include de 'id' attribute in the 'th' element, and the 'headers' attribute in each 'td' element.

But the 'h:datatable' component seems not support this feature.

Does anyone know how to include the attributes in those elements?

Thanks,

Marcelo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
OneJumpedUp
Offline
Joined: 2012-04-05
Points: 0

Try using a facet:

<f:facet name="header">  
    #{yourBean.yourProperty}
</f:facet>