Hello all,
I am trying to style a table with zebra
coloured rows, however, for some reason, the rowClasses attribute does not seem to work.
<style>
tr.even-row td{
background-colour: #fcefa1;
}
td.odd-row td{
background-colour: #f7f7f7;
}
</style>
<rich:dataTable value="#{bean.labels}" var="label" rowClasses="even-row, odd-row">
<rich:column>
<h:outputText value="#{label}"/>
</rich:column>
</rich:dataTable>Any idea as to why this might not be working? (Perhaps I misunderstand what the rowClasses attribute's role is?)
Thanks!
--Cristina.
Solved.
- The rowClasses attribute works fine, but it does not work correctly on rich:dataTable -- is this some kind of known issue?
- Also a mistake of my own: had written coloUr instead of color.