myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <>
Subject Re: Switch state saving method per page
Date Wed, 09 May 2012 13:41:07 GMT
Hi Thomas

I think to make it work correctly it is necessary to do some stuff
inside MyFaces internals. Look these classes:

The intention is make something more pluggable here, so the idea is
allow override the state saving caching strategy, hiding some other
details. It is a work in progress, but if you have some ideas help is
welcome, we can try it and include it directly into myfaces core.


Leonardo Uribe

2012/5/9 Thomas Andraschko <>:
> I tried it but somehow it does not work and i get an new or empty ViewState
> field on postbacks.
> Would be cool if anyone could guide me before i must read and understand
> the complete state saving code :-)
> 2012/5/9 Thomas Andraschko <>
>> Hi,
>> is it possible to switch client/server state saving per page like in
>> Trinidad?
>> I would create an ViewMetaData annotation with CODI and own StateManager
>> which overwrites isSavingStateInClient and reads this MetaData via
>> ViewConfigDescriptor and return true/false.
>> Is this possible or are the more changes/code required?
>> Thanks!
>> Thomas

View raw message