My question is pretty basic but cannot find an answer on Google. I do wonder if I missed something about the ice:column component.
I do use code like :
<ice:panelGrid columns="3">
<ice:column style="background-color: yellow;">
<ice:outputText value="..." />
</ice:column>
<ice:column>
// row content
</ice:column>
<ice:column>
// row content
</ice:column>
// other rows
</ice:panelGrid>
It seems that the column component has a style and styleClass attribute, however nothing is ever rendered in the HTML.
How do you apply a style to a perticular cell of a table with IceFaces ?
Thanks in advance for the answer.
Like as standard JSF
<h:panelGrid>the<ice:panelGrid>has acolumnClassesattribute which allows you to specify a comma-separated list of column classes which are to be applied subsequently on the columns. Also, in standard JSF<h:panelGrid>, the<h:column>is not supported. This is only suppored in<h:dataTable>. Instead, every direct child of<h:panelGrid>is treated as a single column, which can be just<h:outputText>or<h:panelGroup>if you have multiple components which need to go in a single column.So, this should do:
which will generate
You can specify the style in the
.col1,.col2and.col3classes the usual way.