I am developing a report module. based on the values entered by the user i have to generate a report.
once the result is displayed from there user can navigate to other pages (there is no user input here) using hiperlinks.
my problem is since i am using session scope for my backing bean. when i go back to the search page again to give some new condition, but the values given by user are still there.
when i set my session scope to request scope then my navigation is not working.
i dont know what to do???
i need navigation as well as when the user click the back button he has to see the values entered by him in the text box.
You can clear the variables inside all the action methods with navigation rules leading to the page, but not do so with actions leading out of the page. That way when they go back the values are still there, but when they click on a link that leads to the search page the search values are cleared in the action method of the commandLink