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

[694 byte] By [varmawkua] at [2007-10-3 3:29:58]
# 1
This despitely can't using JSF. Use DOM + CSS + JS instead.
BalusCa at 2007-7-14 21:23:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...