Facelet:
<h:dataTable value="#{item1.zapas}" var="item2" >
<h:column>
<h:outputText value="#{item2.hrac == null}"/>
<c:choose>
<c:when test="#{item2.hrac == null}">
<h:outputText value="X"/>
</c:when>
<c:when test="#{item2.hrac != null }">
<h:outputText value="#{item2.vysledok}"/>
</c:when>
</c:choose>
</h:column>
</h:dataTable>
Output:
trueX
falseX
falseX
trueX
item.hrac
is sometimes null
and sometimes not null
but in my choose it still choice null
. So what is wrong? How can I solve it?