I have a Session Scoped managed bean that backs my web-app. In this web-app I would like to have the ability for the user to execute a URL containing a user id and a date. This will then trigger a method in the managed bean, and jump the web-app to that user id and date.
The easy answer would be to put the code for extracting parameters from the URL in the constructor of the managed bean. But the problem lies in the fact that it is Session Scoped, so the constructor is only called on initial load. If the user opens the web-app and manipulates it, then executes the URL with new parameters, there is no way for the constructor to be called.
Is there some way that I can execute a method on a Managed Bean every time the applications URL is executed (every time the page is loaded) regardless of Session state?