datatable - row colors
I am using datatable and each row in table should have different color according to a value of one of the proerty of row.
Here it is
<h:dataTable value="#{form.list}" var="item" id="table">
<h:column>
<h:outputText value="#{item.name}" />
</h:column>
<h:column>
<h:outputText value="#{item.status}" />
</h:column>
</h:dataTable>
each row should be of a color depending on 'status' value of that row.
Say, if it is pending - it should be red color, if it is approved - it should be green color......
Any advise is really appreciated.
Please help me out, Thanks

