I have a question concerning jsf page navigation. How can I configure my jsf application in that way, that after a successful login the only way of navigation gets to the page "list.xhtml"?
Now i have the current situation (I'm using JSF 2.x PrimeFaces and a Glassfish application server):
My user navigates to my login page. The only way to get to this point is the insert in the browser url: "localhost:8080/myApp. Now my user see the login page and must be insert username and userpasswort.
My users can insert an another page navigation path in the browser url column like "localhost:8080/myApp/myPath/resultcalculation.xhmtl", while he is seeing the login page.
Now the browser url column involved "localhost:8080/myApp/myPath/resultcalculation.xhmtl", the user insert the loginname and loginpasswort and will be navigate directly to the page "resultcalculation.xhmtl"
But that is a terrible situation. The user must be navigated to the page "list.xhtml" in that path: "localhost:8080/myApp/myPath/list.xhtml". It is not ok, that he can be navigated through my application by using the browser url column directly.
How can I prevent, that the user do this? He should only using the navigation, which i have developed in my xhtml pages with jsf components like <h:commandButton>
or <h:commandLink>
.