1 Reply Latest reply on Jun 21, 2011 11:17 AM by Cris Grama

    rich:datatable -- rowClasses attribute does not work

    Cris Grama Newbie

      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.

      tr.even-row td{
         background-colour: #fcefa1;
      td.odd-row td{
         background-colour: #f7f7f7;
      <rich:dataTable value="#{bean.labels}" var="label" rowClasses="even-row, odd-row">     
              <h:outputText value="#{label}"/> 

      Any idea as to why this might not be working? (Perhaps I misunderstand what the rowClasses attribute's role is?)