Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<t:savestate To Preserve State In Request Scope

 
Chacko Chen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please provide your faces config xml file also to debug this issue
 
Chacko Chen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the reply,

My faces-config.xml

 
Chacko Chen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the issue due to <redirect> ?
 
Mallika gowd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, that would do it for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic