Symbols of the ternary operation appear on the screen

1

As can be seen in the line below, I'm using a ternary condition on my screen:

<h:outputText value="#{naturemb.nature.id == null} ? #{msg['cadastrando.nature']} : #{msg['atualizando.nature']}"/>

But on the screen, in addition to the text, they show the '?' and ':' as can be seen in the image:

How can I resolve this?

    
asked by anonymous 12.06.2016 / 00:36

1 answer

2

It seems to me that the code is in the wrong place. Try this: #{naturemb.nature.id == null ? msg['cadastrando.nature'] : msg['atualizando.nature']}

    
12.06.2016 / 00:54