• 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

Refresh Page in @SessionScoped

 
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have 3 Pages :

Page1
Page2
Page3

Page1 is sending request to Page2 with QueryString :


Page2 is having <h:commandLink, which is getting loaded dynamically from PageBean and then Page2 is forwarding the request to Page3 :


When redirecting to Page3 from Page2, it is redirecting successfully. But, when i press the Back button of Browser from Page3 and traverse to Page2 and again when i am clicking on that dynamic command button to redirect to Page 3, it is not going to Page3. It is redirecting to himself and the grid automatically getting blank with no QueryString parameter in Address Bar.

I observed that the Page is not maintaining the Session so i tried with @SessionScoped. But, @SessionScoped it is maintaining the value through out the HTTP Session lives.
In this Case, Page2 is redirecting to Page 3 successfully on each Back Button press from browser. But, when i am traversing from Page1 to Page2, it is not changing the values as per Querystring in header. It is showing me values initially requested.

I want Page 2 in session or some Storage that it maintains the page on Browser Back button from Page3.

Kindly suggest.

Any comments are greatly appreciated.





>
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any Comments!
 
Hitesh Kumar C
Ranch Hand
Posts: 35
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody tell me how to clear the Cache in JSF in @SessionScoped?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic