Requirement: Compare two column values, highlight the cells wherever the values are difference, Only the specific cell has to be highlighted (should have a bright background color), and not the entire row.
I am using rich:datatable to display the table. I am not able to get hold of css of a particular cell.
Something like this:
<rich:column sortable="false" width="30%" label="Updated Date" >
<f:facet name="header">
<h:outputText value="Updated Date" />
</f:facet>
if(#{differenceVar[3==true]}) {
// Apply .newCss
}
<h:outputText value="#{differenceVar[3]}" />
</rich:column>