I'm trying to include different file according to the type of my java object.
I'm doing something like that :
<p:panelGrid rendered="#{adapter.habitation}" >
<ui:include src="./habitation.xhtml" />
</p:panelGrid>
<p:panelGrid rendered="#{adapter.animas}">
<ui:include src="./animals.xhtml" />
</p:panelGrid>
But all my cases throw an exception because it's trying to resolve all xhtml files.
Any idea what's wrong?
Thanks