I have a large xhtml file, below the imports there is a component that should only render when a test from a Bean returns true.
<c:if test="#{MyBean.myFunction()}">
<div id="myId" class="someClass">
<h4>someText</h4>
</div>
</c:if>
Somehow it is rendering 4 times, i have checked it through a logger.
When I place a simple
<h:outputText value="#{MyBean.myFunction()}"/>
at the same spot, it is rendering just once.