How can I avoid calling a function on my bean more than once if I have several HTML elements that call this function in their rendered
attribute?
<h:outputText value="1" rendered="#{myBean.myFunc() eq 70}"/>
<h:outputText value="2" rendered="#{myBean.myFunc() eq 42}"/>
Here, the second outputText will unnecessarily call myFunc() again. Is it possible to avoid this behavior?