On Tue, Dec 11, 2012 at 10:02 AM, René Vangsgaard <[email protected]
> wrote:

> Thank you
>
> I understand that Wicket reverts back to statefulness if required. Can I
> get Wicket to log when and why (the offending component) is reverts to
> statefulness?
>

There are two ways:
1) add wicket-devutils dependency and use its StatelessChecker
2) Set logging to DEBUG for o.a.w.Page class


>
> Is it correct that the number after an URL (ex. host/path?8) indicates the
> page is stateful?
>

Yes.


>
> Statefulness concerns me, as I suppose statefulness creates a server side
> session. The server side session make scaling difficult/more complex, as
> the session must be replicated or use sticky sessions. My site have not
> real use for state, but I really like how Wicket does components and
> rendering.
>
>
You may be interested in https://github.com/jolira/wicket-stateless
AFAIK it is not migrated to Wicket 6 ..


> Thanks,
> -René
>
>
> On 10 December 2012 22:43, Phillips, David <[email protected]>
> wrote:
>
> > setStatelessHint() tells the page to attempt to be stateless, but if any
> > of the components or the behaviors are not stateless than the page will
> > revert back to statefulness.
> >
> > There are several components which have stateless alternatives
> > (StatelessForm and StatelessLink for example), but the very nature of
> Ajax
> > and it's callback functionality means that the page cannot be stateless.
> > The server must maintain state about the current page for each Ajax
> request
> > to have the correct starting point.
> >
> > If I may ask, what is it about statefulness that concerns you?
> >
> > Thanks,
> > -David Phillips - USAA
> >
> > -----Original Message-----
> > From: René Vangsgaard [mailto:[email protected]]
> > Sent: Monday, December 10, 2012 3:29 PM
> > To: [email protected]
> > Subject: EXTERNAL: stateless pages
> >
> > I am looking into stateless wicket. Do the setStatelessHint() work as
> > expected? My links are generated correctly, but when the page is
> rendered a
> > ?#number is rendered - the #number being the "normal wicket counter". I
> > read that the presence of this number indicates my page is not stateless.
> >
> > And it is true that any use of Ajax will make a page stateful.
> >
> > On a more general note, I am looking into creating a stateless
> > application, mainly because of scaling. Do you think Wicket will fit,
> even
> > though I will be using Ajax? I really think the separation of HTML and
> > code, the approach with components and the use of wicket:id is the best,
> > and I have not found it anywhere else. Basically I like Wicket, but do
> not
> > need the statefulness.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>



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

Reply via email to