Following example shows how to change background color of column using column’s attribute value.In this sample VO name is CustomVO and attribute is cusAttribute(Here If cusAttribute value greater than 100 background color red otherwise green)
<af:table value="#{bindings.CustomVO.collectionModel}" var="row">
<af:column custom data...
inlineStyle="#{row.cusAttribute > 100 ?'background-color:Red;':'background-color:green;'}">
<af:outputText value="#{row.cusAttribute}" id="ot5">
</af:outputText>
</af:column>
thank you very useful information
ReplyDeleteThanks for this post
ReplyDelete