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!

checking for && condition in rendered attribute in JSF

843844May 2 2008 — edited May 2 2008
how can I check for the && condition for rendered attribute ?

I have the following code -
<tr:outputText inlineStyle="font-weight:bold"
                   rendered="#{myBean.code != 'qws'} && {myBean.code != \'qwe\'}"
                   value="Submitted"/>
What I am trying to do here is that only when myBean.codde value is not qwe or qws then print submitted to the user.

What is the correct way. This doesnot seem to work. Any help will br appreciated. Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2008
Added on May 2 2008
2 comments
215 views