In the following JSF snippet the menuHelperBean.userType is a string. On one JVM it doesn't work and in
the other it works. Can anyone tell what is the correct way to compare strings in the JSF?
Thanks
<td height="25" class="leftBarLinkNormal">
<h:graphicImage value="../../resources/images/provadmin/arrow.gif" width="4" height="7" rendered="#{menuHelperBean.userType == 2}" />
</td>
<td class="leftBarLinkNormal">
<h:commandLink id="clnkAuthList" styleClass="mainContent"
value="List My Auths" onmousedown=" return true;" action="#{authorizationsBean.btnAuthsList_Click}" rendered="#{menuHelperBean.userType == 2}" />