aspose file tools*
The moose likes JSF and the fly likes Navigation Problem - URL not updated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Navigation Problem - URL not updated" Watch "Navigation Problem - URL not updated" New topic
Author

Navigation Problem - URL not updated

Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
I have a simple jsf webapp with the following navigation rule



and I also have a index.jsp which simply redirects to a.faces



Ok., here is my problem. When I goto http://localhost/jsfu it takes me to the http://localhost/jsfu/a.faces and the browser displays the url as "http://localhost/jsfu/a.faces".

I click on a command button on a.jsp which takes me to b.jsp. b.faces is displayed. BUT the address displayed in the browser is still "http://localhost/jsfu/a.faces".

I click on a link in b.jsp which takes me to b1.jsp. b1.faces is displayed. BUT the address displayed in the browser is "http://localhost/jsfu/b.faces".

Simply put, for some wierd reason its always displaying the previous page in the browser address bar. Anyone know why it might be doing this? By the way, I am using Apache Myfaces


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
any one?
madhuri madhuri
Ranch Hand

Joined: Jan 18, 2006
Posts: 58
Try this:



There was a very long thread trying to explain why and what happens when we redirect the page. I was not able to find the thread though. But that was the solution given and it works.


~Madhuri
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Navigation Problem - URL not updated
 
Similar Threads
buttons problem
form address inverse
.jsp file becomes .jsf file?
why the same URL shows different page in JSF
navigation issue