Take a look at these two wiki pages
1. saveState Component - Very Good provided you are not using Re-Direct.
http://wiki.apache.org/myfaces/SaveState
2. The sandboxes conversation Component - I currently use this one in my
application
http://wiki.apache.org/myfaces/ConversationTag
Tom
-----Original Message-----
From: Naresh Bhatia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 1:52 PM
To: MyFaces Discussion
Subject: Saving state in page
I have a very basic JSF question - how to save state in a page? I have
the following situation, Page A navigates to page B through a link. The
link has a request parameter in it, say productId=12. How do I make page
B remember that it was invoked with productId=12? I do not want to use
managed beans with session scope (trying to avoid session scope all
together). I can think of two ("traditional") approaches:
a) save the productId in a hidden form variable (h:inputHidden) making
it available when the page is posted back
b) add the productId as a request parameter on links on the page.
Are there other ways to do this - perhaps there is a preferred JSF way?
Is javax.faces.STATE_SAVING_METHOD somehow related to this?
Thanks.
Naresh