I have a page that load (in a panelGroup) two different page, due to the login status (logged, not logged). This is the main switch :
template.xhtml P.S
template.xhtml
<c:catch> <ui:include src="/#{selector.page}/#{selector.page}.xhtml" /> </c:catch>
The problem is that you are using JSTL elements which break @ViewScope use alternative.
@ViewScope
A similar bug
http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-928