In the following scenario, the "hasA" condition is checked twice, is there a way to mimic this much similar to a if/else block so that the condition is evaluated only once
<s:decorate template="/layout/display.xhtml">
<h:outputText value="Print A." rendered="#{hasA}"/>
<h:outputText value="Print B." rendered="#{!hasA}"/>
</s:decorate>