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

Reply via email to