I am facing a challenge where I need to dynamically change the background color of an af:column
header.
I have experimented with different solutions:
- Using the
headerClass
property in the CSS file foraf:column
does work, but dynamic changes are not possible. - Another approach was creating a header facet for
af:column
and setting the background color as an inline style. However, this method did not result in the entire cell being colored due to padding on all sides of theth
element.
Sample Code:
<f:facet name="header">
<af:outputFormatted value="column_1" id="pt_of1" inlineStyle="background-color:Blue;"/>
</f:facet>
Does anyone have any other ideas or suggestions?