• 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

Page Forward Does not Update Url

 
Ranch Hand
Posts: 124
C++ Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Being farely new to jsf but having done some work in servlets and jsp i am a bit confused regarding the concept of page fowarding in jsf

Now in Servelts I know there were basically two ways to forward to another page
1-request.getRequestdispatcher("PageName.jsp").forward; //One way
2-response.sendRedirect("www.somesite.com"); //Two way phenomenon

Each of the above way updated the URL

anyways i am a bit surprised with jsf and i wnated to know why the url updation doesnt work in the following scenario i know i could use redirect but i wanted to know why forward doesnt work in this case

consider in the xhtml page i have the following
<h:commandButton value="Show Recommended Study Plan" action="somepage" /> --->Scenario A

I know i could have gone like this and do double work :
<h:commandButton value="Show Recommended Study Plan" action="somepage?faces-redirect=true" />

but i am more interested in what happens behind the scene in scenario A why the url isnt updated ??

 
Good night. Drive safely. Here's a tiny ad for the road:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic