You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alfonso Quiroga <al...@gmail.com> on 2012/11/05 13:14:17 UTC

disable serialization

Hi, sorry for my basic question. Is there a way to disable de
serialization? Maybe defining a dummy PageStore? In that case... how I
register the new page store in the application?

Thanks!!

Re: disable serialization

Posted by Martin Grigorov <mg...@apache.org>.
See https://cwiki.apache.org/confluence/display/WICKET/Page+Storage


On Mon, Nov 5, 2012 at 3:50 PM, Alfonso Quiroga <al...@gmail.com>wrote:

> Finally I could use this:
>
> Application#setPageManagerProvider(  new DummyPageManagerProvider()   )
> DummyPageManagerProvider just returns "null" everything
>
> and it works! (it does NOT serialize pages)
>
> First of all: i do NOT need back support, so I use this:
> Application#getPageSettings().setVersionPagesByDefault(false);
>
> My doubt now is... when I debug "PageStoreManager", when findPage() is
> fired, a search is made in a "sessionCache" and it works.
> But when it's NOT found there, it goes to a PageStore (I think the 2nd
> level cache) where I have my dummy store and will break.
>
> --> So my question is, When happens that the sessionCache does not have a
> page? the pages are cleaned?
>
> Thanks!
>
>
> On Mon, Nov 5, 2012 at 9:14 AM, Alfonso Quiroga <alfonsosebaq@gmail.com
> >wrote:
>
> > Hi, sorry for my basic question. Is there a way to disable de
> > serialization? Maybe defining a dummy PageStore? In that case... how I
> > register the new page store in the application?
> >
> > Thanks!!
> >
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Re: disable serialization

Posted by Alfonso Quiroga <al...@gmail.com>.
Finally I could use this:

Application#setPageManagerProvider(  new DummyPageManagerProvider()   )
DummyPageManagerProvider just returns "null" everything

and it works! (it does NOT serialize pages)

First of all: i do NOT need back support, so I use this:
Application#getPageSettings().setVersionPagesByDefault(false);

My doubt now is... when I debug "PageStoreManager", when findPage() is
fired, a search is made in a "sessionCache" and it works.
But when it's NOT found there, it goes to a PageStore (I think the 2nd
level cache) where I have my dummy store and will break.

--> So my question is, When happens that the sessionCache does not have a
page? the pages are cleaned?

Thanks!


On Mon, Nov 5, 2012 at 9:14 AM, Alfonso Quiroga <al...@gmail.com>wrote:

> Hi, sorry for my basic question. Is there a way to disable de
> serialization? Maybe defining a dummy PageStore? In that case... how I
> register the new page store in the application?
>
> Thanks!!
>