0

I defined a value expression in 2 tags. While both are defined as expecting a javax.el.ValueExpression,

<p:cellEditor rendered="#{!row.labelMode.toString().isEmpty()}">

works fine, while

<h:outputText value="#{msgs.pg_fieldMsg}"
              rendered="#{!row.labelMode.toString().isEmpty()}"/>

always renders, obviously ignoring the rendered attribute or evaluating it wrongly or different.

LabelMode is an enum (kotlin). Same is when I replace toString() by name(). This behaviour is independent from server (Jetty ot Tomcat)

Any ideas?

1 Answers1

0

According to h:outputText to conditionally render groups of JSF elements no longer working in JSF 2? outputText is the "Wrong Toolâ„¢ for the job".

Despite that, the javadoc for outputText still names the render method as operative :-/