Sorry if this is known, but I could not find it by searching. We were considering switching to MyFaces 2.2 instead of Mojarra. But we see one difference with the facelets templating. We have this:
a common template which has:
<ui:insert name="header">
<ui:include src="header2.xhtml" >
</ui:include>
</ui:insert>
<ui:insert name="content">
<ui:include src="contents.xhtml" />
</ui:insert>
<ui:insert name="footer">
<ui:include src="footer.xhtml" />
</ui:insert>
In the header, we have:
<h:outputText value="#{pagename}" styleClass="pagetitle" />
The contents is basically blank but each page xhtml file defines the parameter:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
template="common.xhtml">
<ui:param name="pagename" value="My Page" />
</ui:composition>
If we use Mojarra 2.2, the header shows pagename variable. But in MyFaces is does not resolve and it's blank.
Any idea how to have that variable from one ui region be visible in the header using MyFaces?
Thank you