Restoring the proper view
I have a page that lists Contracts. If the user clicks one, he is taken to a detail page for that Contract.
Also on the list page, is a booleanCheckBox that filters the list. It's executed by a ValueChangeListener and it works fine.
The problem I'm having is, if the user clicks on a contract and navigates to the detail page, then returns to the list by using the browser's back button, the ValueChangeListener does not work as expected.
Instead of (un)filtering the list, it returns to the detail page. I suppose this is because the detail page was the last one rendered, and the renderedResponse call is just doing its job.
How do I check which view is the current one, and how do I change it if it's not the one I expect?
Thanks

