myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <>
Subject Re: SERIALIZE_STATE_IN_SESSION - What does it do?
Date Thu, 04 Sep 2014 20:18:53 GMT

Check if your view scope managed beans implements Serializable interface.
When SERIALIZE_STATE_IN_SESSION, it forces serialization of all view scope
beans, and if you have not marked them as Serializable, the values will get
lost. In a cluster, it is possible to find configurations where a session
is serialized and deserialized, so SERIALIZE_STATE_IN_SESSION help with
that scenario, to avoid exceptions later when the session is deserialized.


Leonardo Uribe

2014-09-04 14:51 GMT-05:00 <>:

> We have a custom address tag that seems to behave differently based on
> whether SERIIALIZE_STATE_IN_SESSION is set to true or false.
> When it is set to true, the values entered by the user on the page never
> make it to the managed bean.   When it is set to false, the values
> entered do make it to the managed bean.   Any idea why changing the value
> of this parameter would impact the property being updated
> in the managed bean or not?   Our applications are running in a clustered
> environment, so we are thinking that SERIALIZE_STATE_IN_SESSION
> should be set to true so things will failover correctly.   Is that
> correct?
> Thanks
> This e-mail message is intended only for the use of the individual or
> entity to
> which the transmission is addressed. Any interception may be a violation of
> law. If you are not the intended recipient, any dissemination,
> distribution or
> copying of this e-mail is strictly prohibited. If you are not the intended
> recipient, please contact the sender by reply e-mail and destroy all
> copies of
> the document.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message