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!

JSF EL: comparisons with null

843844Jul 12 2007 — edited Nov 4 2009
Hi,
I would like to use following JSF EL expression but the rendered part does not seem to have any effect:
<h:outputText value="#{bundle.link_next}" rendered="#{informationBean.information.next != null}"/>
I also tried using:
rendered="#{!empty informationBean.information.next}"
but that only seems to work for Strings, maps, arrays & collections.
So, how do I compare to null for the other types in the JSF EL?

Kind regards,
Dirk
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2009
Added on Jul 12 2007
2 comments
394 views