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
The problem is that you are using JSTL elements which break @ViewScope use alternative.
@ViewScope