jsfelmultiple-conditionsrendered-attribute

How to check two conditions inside rendered attribute?


I tried below code

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

But this doesn't works.


Solution

  • Here is a proper EL Expression

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

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