Hi,
I need to do conditional checking(i.e if then else) on the <rich:Column> of <rich:datatable> in the following way,but it seems doesn't work.Could any body please advise on how to do this conditional checking in rich faces.
<rich:column sortBy="#{inventory.onlineStatus}" sortOrder="ASCENDING">
<c:choose>
<c:when test="${inventory.onlineStatus=='Inactive'}">
<h:outputText class="text-heading-red" value="#{inventory.onlineStatus}"/>
<h:outputLink value="#" id="activate">
<h:outputText class="text-heading-blue" value="Activate"/>
</h:outputLink>
</c:when>
<c:when test="${inventory.onlineStatus=='Active'}">
<h:outputText value="#{inventory.onlineStatus}"/>
<h:outputLink value="#" id="De-Activate">
<h:outputText class="text-heading-blue" value="De-Activate"/>
</h:outputLink>
</c:when>
<c:otherwise>
<h:outputText value="#{inventory.onlineStatus}"/>
</c:otherwise>
</c:choose>
</rich:column>
Thanks in advance..
Thanks,
Reddy
Reddy,
Use "rendered" instead of c:choose/c:when