The back button!!
Our team is currently on a j2ee project with jsf using studio creator. Fun. Due to some mechanism with the "session" scope and "request" scope thingie, we often run into problems when the user navigates to a listing page, clicks on link A, goes to page A, then presses the back button to go back to listing page, clicks on link B, but still page A shows up!! It seems that the listing page has its request cached inside, so by pressing the back button on the browser and clicking on ANY link will result in the browser resubmitting the cached request! so what we have to do is to:
create a back button/link inside the page A that allows the browser to clear the cached request and create a new and correct request.
But: some pages do not come from just a single listing page! does that mean we have to create X links for X pages where page A comes from? no way!
create a back button/link inside the page A that allows the browser to clear the cached request and create a new and correct request.
But: some pages do not come from just a single listing page! does that mean we have to create X links for X pages where page A comes from? no way!


0 Comments:
Post a Comment
<< Home