A good workman is known by his tools.
Originally posted by James Ellis:
What does changing the STATE_SAVING_METHOD in web.xml really do?
I have been playing around with it and I know that when STATE_SAVING_METHOD="client" that any beans referenced from jsp must implement serializable, but I am not sure why.
Where is the state being saved? In a session variable? If so how can you specify "session variable on client" versus "session variable on server".
Is there any benefit to one way or the other?
- Varun
Originally posted by Varun Khanna:
As per my knowledge this is incorrect. Implementing serializable isn't a requirement.
A good workman is known by his tools.
Originally posted by Marc Peabody:
For what it's worth, I tried finding implementation details for "client" in the JSF spec but couldn't find any. Looks like that's up to the implementation to decide but I can't think of any way to handle this other than saving everything to hidden fields on every page (as does MyFaces).
Originally posted by Marc Peabody:
The MyFaces implementation looks like it uses 64-bit encryption to save both the view and state as hidden fields. To my knowledge, an object must be Serializable to be encrypted.
For what it's worth, I tried finding implementation details for "client" in the JSF spec but couldn't find any. Looks like that's up to the implementation to decide but I can't think of any way to handle this other than saving everything to hidden fields on every page (as does MyFaces).
- Varun
- Varun
Originally posted by Varun Khanna:
Okay, just did a quick Search and found this :
http://forum.java.sun.com/thread.jspa?forumID=427&threadID=508703
A good workman is known by his tools.
Originally posted by jack catler:
I know this thread went silent a while back, but it is the topic of interest for me.
One question, leading on from Kevin's summary (which I found very helpful...), does that mean (in the end) a bean DOES need to impliment Serializable to allow the use of STATE_SAVING_METHOD on either Client or Server ?
Thanks!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |