wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: loosing custom wicket session
Date Sat, 03 Mar 2012 08:27:00 GMT
On Sat, Mar 3, 2012 at 5:08 AM, grazia <Grazia.RussoLassner@gmail.com> wrote:
> I did bind the session as you suggested. IN addition, I noticed that I had
> not appropriately accounted for my custom RequestCyle.
> Thank you for your feedback, it was very useful.
> I add the code hoping to help anybody running into this problem.
>
> this.setRequestCycleProvider(new MyRequestCycleProvider());
>
> private final class MyRequestCycleProvider implements IRequestCycleProvider
> {
>
>        @Override
>        public RequestCycle get(RequestCycleContext context) {
>            if (context.getRequest() instanceof WebRequest){
>            return new MyRequestCycle( context );
>            }
>            return this.get(context);

stackoverflowexception ^^

>
>
>        }
>    }
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4440588.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message