I have a question surrounding faces navigation.
So I have a page that takes a request parameter to load a specific user. This page displays a list of commandLink that, when clicked, redirect to another page using implicit navigation. The user is loaded by calling a method in a "preRenderView".
The page that we redirect to also takes a request parameter to determine which case to load. The page is also using a preRenderView.
Both pages have beans that are view scoped.
This all works awesome for the FIRST link that is pressed. The first page redirects to the new URL and the case loads as expected.
HOWEVER, if I click the browser's back button and then click another link the page DOESN'T redirect. It refreshes (instead) and, obviously, doesn't shop the case.
After the refresh, I can click a link and it will redirect properly.
Now, all of this works totally fine when the first page's bean is kept in the session but I don't want to abuse the session state and I don't think it should be required for me to keep this data in the session.
I know I can fix this by having the page automatically reload when I click the back button (because the view will be recreated) but I'm not sure if that's the correct solution either. (nor am I sure how I would force this)
Does anyone have any suggestions? This seems like a fairly common use case but I couldn't really find any examples.
Thanks!