1 Reply Latest reply on Mar 11, 2009 11:02 AM by nbelaevski

    Check null

    elf

      Please sorry my stupied question.

      I have simple text output
      <h:outputText value="#{bean.child.label}" />

      How can I check is bean.child null, and in case of yes display default text.
      I need something like this
      <h:outputText value="#{ if(bean.child == null) then "default text" else bean.child.label }" />

      Thanks in advance