Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Comparing strings in rendered

413662Jul 1 2008 — edited Aug 14 2008
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}" />
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2008
Added on Jul 1 2008
27 comments
5,433 views