Hi Leonardo,

i already checked this classes and server/client StateCache will be
switched via isSavingStateInClient().
So why it is required to make it more pluggable? Sorry but it's really hard
to understand who and where the state will be written or restored because
there are many classes for the state saving stuff :/

Thanks,
Thomas


2012/5/9 Leonardo Uribe <[email protected]>

> Hi Thomas
>
> I think to make it work correctly it is necessary to do some stuff
> inside MyFaces internals. Look these classes:
>
>
> http://svn.apache.org/repos/asf/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/StateCache.java
>
>
> http://svn.apache.org/repos/asf/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/ServerSideStateCacheImpl.java
>
>
> http://svn.apache.org/repos/asf/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/renderkit/ClientSideStateCacheImpl.java
>
> 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.
>
> regards,
>
> Leonardo Uribe
>
> 2012/5/9 Thomas Andraschko <[email protected]>:
> > 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 <[email protected]>
> >
> >> 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
> >>
>

Reply via email to