• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

url does not change when i navigate to another page

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic