Consider the following jstl choose:
<c:choose>
<c:when test="#{AuthMsgBean.rw['2'] ne null}">
Display Text
</c:when>
<c:otherwise>
<ph:outputText id="pan" value="Component pan could not be created." />
</c:otherwise>
</c:choose>
AuthMsgBean = Bean
rw = Map
'2' = Key
Question:
When I simply display the #{AuthMsgBean.rw['2'] ne null}
value it displays fine (true), but once I try to parse the value to the <c:when test=""/>
the when tag re-acts as if the test is always false.
If I put true in the test (test="true"
) the Display Text is displayed.
Could it be that the <c:when>
tag is evaluated before the #{AuthMsgBean.rw['2'] ne null}
expression?
If so, is there a workaround?