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
Hello,
Use ternary operator
? :