I'm sorry. My mistake... :-$ I was making wrong assumptions about the internal behavior of the CGLIB-generated object. I assumed I could use the Eclipse debugger and look at the internal variables of the object, but this is of course wrong, since it's just a proxy and the data is stored elsewhere.
I inserted log-statements instead of using debug, and now it seems to be working perfectly fine. Sorry for the inconvenience. Daniel Stoch-2 wrote: > > You should check if you get always the same basket instance when > creating BasketPanel. It looks like this bean behaves as a prototype > scoped bean. Simple solution is to add a static int counter in your > Basket class and increments it by one in Basket constructor call. Then > you will be able to check on your BasketPanel if you got the basket > with the same counter value each time you create this panel. > > I think <aop:scoped-proxy/> is not necessary. > > PS. Have you defined RequestContextListener in your web.xml? It is > required for request scope and session scope beans: > > <listener> > <listener-class> > > org.springframework.web.context.request.RequestContextListener > </listener-class> > </listener> > > Daniel > > -- View this message in context: http://www.nabble.com/Session-scoped-Spring-bean-tp15224216p15263483.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]