In my problem, I have to display h:panelGroup
based on a condition. For this h:panelGroup
, the rendered
attribute has already been set.
<h:panelGroup rendered="#{not empty program.categories}">
<li>
<strong>Category: </strong>
<h:outputLabel value="#{not empty program.categories ? 'A':'N/A'}"/>
</li>
</h:panelGroup>
now I am trying to keep a condition like the code below:
<c:if test="${program.distTypeName != 'X' || program.distTypeName != 'Y' || program.distTypeName != 'Z'}">
<h:panelGroup rendered="#{not empty program.categories}">
<li>
<strong>Category: </strong>
<h:outputLabel value="#{not empty program.categories ? 'A':'N/A'}" />
</li>
</h:panelGroup>
but this is not working. Please tell me what I am doing wrong. Basically, if the disType
is not in x,y,z then I need to display the h:panelGroup
.
How do we test not in
condition with jstl tags?
Thanks in advance.