i'm using datatable primefaces with columns. example
index----name----status
1 a 0
2 b 1
i want to compare, if value of column status will show simple 0=active
and 1=hidden
.
i tried
<c:choose>
<c:if test="#{column.property == 'status'}">
//i will do something, show value,action... that's will map to status
</c:if>
<c:otherwise>
<p:outputLabel value=#{varTable[column.property]}/>
</c:otherwise>
</c:choose>
but all cases were <c:otherwise>
. i'm fixed with remove property status
and add new column status in the last. but with more columns, i need compare that still using columns
. please help me!