If I re-enter the URL for Page1 into a new browser tab, it still goes to Page2.
When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS
Tom Cog wrote:I'm a newbie to JSF so please take it easy on me. I'm an experienced programmer with Struts, but this is a new small project I have to do (by myself of course) with JSF.
I'm using ICEFaces 1.8, with JSF 1.2 and Java6 SDK. Tomcat 6 web container.
I have Page1 that contains a data table, that lists master record data. One of the columns contains a commandLink which allows a specific child record to be edited, in Page2. The navigation works perfectly from Page1 to Page2. The problem comes in when after the user is done on Page2, they may need to go back to Page1 to look at the rest of the master records and perhaps view another one. I cannot get that to work. I created a commandLink in Page2, to navigate back to Page1, using a static outcome string. Regardless if I use redirect true or false, JSF will immediately go to Page2 and not display Page1. If I re-enter the URL for Page1 into a new browser tab, it still goes to Page2. The only way I can get back to Page1 is to completely close the browser, the open it back up and put in the URL.
I know there must be something simple I am missing here. I tried to search for the answer with all of the search terms I can think of but I keep getting back results that do not apply to my situation. Can someone tell me what I'm doing wrong here, or point me to an existing thread that explains this?
Thanks in advance!
Tom
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Eric Ford wrote:For one like this, Tom, you really need to post your code. My first suspicion is that you're using a backing class that is "session" scoped and whatever flag value you use to detect/perform the navigation is still set the next time you enter Page 1 so the trip to Page 2 is appearing to occur automatically.
But, I'm just guessing.
Eric
How do they get the deer to cross at the signs? Or to read this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|