How to check two conditions inside rendered attribute?

Heena Jain picture Heena Jain · Mar 4, 2013 · Viewed 14.3k times · Source

I tried below code

   <h:form rendered="{#{cars.enabled} and #{cars.enabledEdit}}">

But this doesn't works.

Answer

Daniel picture Daniel · Mar 4, 2013

Here is a proper EL Expression

<h:form rendered="#{cars.enabled and cars.enabledEdit}">

No need (and its even illegal to use #{} inside #{})