I have a Bean CDI Session which stores some information for use in the application while the user is logged in, but I need a control that when the other beans try to use some attribute of this Bean it is Null that the user is redirected to the information selection page.
He made the implementation in the get of the tribute in question and is valid if the current page is the page of the selection if it opens the page if it does not redirect. This solution works for some screens for other displays 500 error and I know that is not the ideal way to deal with this problem.
Any suggestions on how I can do this?