This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

url does not change when i navigate to another page  RSS feed

 
Suresh Khant
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am developing small application about students and their courses using jsf 1.2, Jboss , ubuntu .


the main page (http://localhost:8080/studentsApp/main.jsf) has 2 links (listStudents.jsf,listCourses.jsf)

the problem is that when i click on command link on listStudents it will go to corresponding page but the url stay at (http://localhost:8080/studentsApp/main.jsf) and wont change to
http://localhost:8080/studentsApp/listStudents.jsf


here is the main.jsf

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is because in JSF, the URL is not primarily a pointer to a JSF resource, it is a "handle" to the user's JSF session. It will change according to certain rules, but it's not the straightforward thing it is on most web platforms.

You can glue the URL more directly to the associated resource by using the "redirect" navigation directive, but there is a performance penalty.
 
Suresh Khant
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot Tim Holloway for your reply ,

It have tested "redirect" and worked well.

Regarding the performance : It is a small application , but anyhow i ll keep monitoring the performance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!