wood burning stoves 2.0*
The moose likes JSF and the fly likes <t:savestate To Preserve State In Request Scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "<t:savestate To Preserve State In Request Scope" Watch "<t:savestate To Preserve State In Request Scope" New topic
Author

<t:savestate To Preserve State In Request Scope

Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
Hello,

I am using JSF 1.1 with Icefaces 1.8.0.

I would like to save state of my request bean when I navigate back to my page
My scenario is as follows
When I navigate from page one to page two, I would like to values in combo box's and datatable pagination be preserved
when I navigate back to page one from page two without using session scope.

For this I tried using <t:savestate. I implemented Serializable like the following


and in the page I added the following


But for some reason or the other I cannot get the page values in save state.
What could be the issue, could someone please help?

Thanks in advance.

My web.xml is as follows





Mallika gowd
Greenhorn

Joined: Sep 28, 2009
Posts: 26
please provide your faces config xml file also to debug this issue
Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
Thanks a lot for the reply,

My faces-config.xml

Chacko Chen
Greenhorn

Joined: Oct 12, 2010
Posts: 15
Is the issue due to <redirect> ?
Mallika gowd
Greenhorn

Joined: Sep 28, 2009
Posts: 26
yes, that would do it for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <t:savestate To Preserve State In Request Scope
 
Similar Threads
config my-faces & tomahawk & Trinidad
security constraint with jsp forward
myFaces Component and JSF netbeans
web.xml deployment problem
URL Pattern for JSF pages