I'm glad to hear that this has been thought of, it is definitely a step above JSF, although I think myfaces implementation give you the option to have a limit on the session scope, the point is, is that type of feature isn't part of the spec so you aren't sure you are getting it when you use an implementation of JSF.
So what is the setting to limit the cache in 1.2? Is that an init parameter to the servlet? In wicket 2.0 where does the pages get serialized to, at least I'm assuming it is serialized? What happens is the signature of the Page object changes. I'm assuming during deployment this wouldn't be an issue, but what about in your development environment? igor.vaynberg wrote: > > On 10/11/06, craigdd <[EMAIL PROTECTED]> wrote: >> >> >> I've read a couple times that with wicket 2.0 a feature has been added to >> allow developers to define if a Page is stateless or stateful. This >> feature >> is pretty nice and gets wicket a step closer to some of the features that >> JSF has and greately decreaes the size of the session in a large >> application. > > > the size of your application has no bearing on the size of the session. > > wicket-1.2 keeps an LRU cache of pages called a PageMap. > > wicket-2.0 only keeps a single page in session and dumps the rest to disk > > >> With that said, has anyone gone a step further and though about have Page >> scoped somewhere between stateless and stateful? The basic concept would >> be >> the page is stateful as long as it is need and when not needed it is >> removed >> from the session. > > > what would be the usecase for a page like that? wicket keeps pages in > session for backbutton support. > > I have really thought about how this would be implemented but maybe for >> starters it is as simple as have a limit on the size of Pages in the >> session, when the limit has been retched then the oldest request Page is >> removed. > > > we already have a setting in 1.2 to limit how many pages are kept in > session. and in 2.0 its not really necessary because only a single page is > kept in session. > > -Igor > > -- View this message in context: http://www.nabble.com/View-Scoped-Pages-tf2425546.html#a6764463 Sent from the Wicket - Dev mailing list archive at Nabble.com.
