Hello.
I have a JSF/Seam application and I need to write yes if a boolean is true, and no if a boolean is false.
I have tried everything, but it is always displayed No.
#{proeve.bestaatt} is a boolean value and it prints true or false.
Here is my sample code:
Code:
<c:choose>
<c:when test="${proeve.bestaatt}">
Yes
</c:when>
<c:otherwise>
No
</c:otherwise>
</c:choose>
I have tried
<c:when test="#{proeve.bestaatt}">
and
<c:when test="${proeve.bestaatt eq 'true'}">
and
<c:when test="#{proeve.bestaatt == 'true'}">
But nothing works.
Please help