I'm trying to make a simple JSF project wich shows a login page, if the user is not logged, or the main application's screen, if it is. I'm trying to do this declaring the following in my index.xhtml:
Due to the use of Facelets + CSS I'm getting visually messed up pages that are shown up correctly after pressing the refresh button. What I'm looking for is an equivalent to a <ui:forward> tag, just like there used to be in JSP. Am I using the wrong approach? I've searched stuff about using PhaseListener, FacesContext, JSP and so on, but I want an approach that uses the most JSF/Facelets markups and separates the navigation logic from the backing beans.
PS.: It has been years since I made my last registration in a code forum, and I've searched a lot already, with no success.