File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF session" Watch "JSF session" New topic

JSF session

suganya gayathry

Joined: Jun 16, 2007
Posts: 5
I am facing a problem, please see the below details.

i have a search form. i am giving a search criteria and getting the search result. Now i am navigating to a different url in the same browser. again i am returning to the search form by clicking the url in the browser drop down. now i am getting the same search criteria entered previously.
Shivaji Byrapaneni

Joined: Oct 20, 2008
Posts: 22
if my compilation of your question is correct you are looking for something that should not use the same session values

for this as and when you are getting out of that page in the sense when navigating from that page to other try to inactivate the session which is something like clearing the session on log out

if you want your session to remain but the values that are used in the page to be cleared then go in this way

get the context object and try getting the application properties list and remove the appropriate value that you want to remove
Shivaji Byrapaneni

Joined: Oct 20, 2008
Posts: 22
simply the problem can even be cleared by setting your mbean (if you are setting the values to mbean) to request scope in faces-config.xml
I agree. Here's the link:
subject: JSF session
It's not a secret anymore!