I have a problem with c:if test=boolean. JSF always enters for false, never enters for true. I checked the value, var is sometimes true and sometimes false, in fact I can see this at the row because I use the same value.
I don't understand this, i thought that c:if test receive the same value than outputText but its look like that does not.
<p:dataTable id="table" var="var" value="#{bean.array}">
<p:column headerText="header">
<c:if test="#{var.boolean}">
<h:outputText value="#{var.item}" style="color: green" />
<h:outputText value="#{var.item2}" style="color: red" />
</c:if>
<c:if test="#{not var.boolean}">
<h:outputText value="#{var.item}" style="color: red" />
<h:outputText value="#{var.item2}" style="color: green" />
</c:if>
</p:dataTable>
Thanks and sorry for my bad english.