Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigation Problem - URL not updated

 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any one?
 
madhuri madhuri
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic