myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lanchez <apache_supp...@purpleblade.net>
Subject Re: <t:saveState> not working - not serializing correctly.
Date Tue, 03 Apr 2007 01:41:03 GMT

This is my saveState right after the body tag.

    <t:saveState id="idSaveVideo" value="#{video}"/>

Thanks 

I


Simon Kitching-3 wrote:
> 
> I Faces wrote:
>> I have an xhtml page with t:saveState references a backing bean.  The
>> backing
>> bean is serializable and I have two methods private void readObject,
>> private
>> void writeObject however neither of these get called.
>> 
>> As I understand it these methods should get called when an object is
>> serialized.  Is there something wrong with the JSF implementation of
>> saveState such that these methods do not get called as they should?
>> 
>> How do I verify that saveState is working correctly?  After stepping
>> through
>> the code, doe not look like the <t:saveState does anything at all.
> 
> Just a wild stab: JSF supports two different serialization mechanisms:
> (a) java.io.Serializable, and
> (b) javax.faces.StateHolder.
> 
> If your class implements StateHolder for some reason then those methods 
> will be called rather than readObject/writeObject.
> 
> But otherwise I cannot see any reason why it wouldn't be working.
> 
> You are providing an EL expression in the t:saveState value attribute,
> yes?
> 
> Regards,
> 
> Simon
> 
> 

-- 
View this message in context: http://www.nabble.com/%3Ct%3AsaveState%3E-not-working---not-serializing-correctly.-tf3507948.html#a9802274
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message