0

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.