Jsf 2.0-<ui:include>xhtml included always even if rendered is false
I have a home page xhtml where i am including 3 child xhtml based on conditions. The issue i am facing is , whatever be the scenario,Book.xhtml always gets invoked. I changed the rendered condition to false or move out to another condition, but the file always gets invoked Due to which its backing bean also is invoked causing unwanted overhead. Please provide me a solution <ui:composition template="/xhtml/baseLayout.xhtml"> <ui:define name="browserTitle"> <h:outputText value="HOME PAGE" /> </ui:define> <ui:define name="header"> <ui:include src="/xhtml/header.xhtml" /> </ui:define> <ui:define