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

    rich:datatable -- rowClasses attribute does not work

    acgrama

      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.