1
I have a Sessionscoped bean that I use to navigate data from page 1 to page 2. Page 1 is accessed through the menu, while page 2 is accessed by a button inside page 1, where some data based on filters are loaded from this first page. My question is the following: If the user type the url of this page 2 in hand, how can I redirect it to the first page?
What Voce wants is to prohibit access to certain users' Urls? For example, user x is not allowed to access page y. If he tries to access page y in hand he is redirected to login page?
– DiegoAugusto
Not certain users, but all. In case the user tries to enter page 2 manually, redirect to page 1. Until because if it goes straight to page 2 will give a blow, as it has data that are taken from page 1.
– tiagoww
I thought of something now but I do not know if it works, Voce can create a phaseListener that checks if the data is null, if they are null the page can not be accessed
– DiegoAugusto