RE: [Wicket-user] Sessions?

2006-05-17 Thread Nino Wael
ThanksJ Martijn From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst Sent: 16. maj 2006 14:27 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Sessions? Add the property to your custom Session object. public class MySession

Re: [Wicket-user] Sessions?

2006-05-16 Thread Maurice Marrink
The wicket way of storing objects in your session is by extending the wicket session. For example if you want to store somekind of User object in your session, you would create a getter and setter for it in your custom wicket session. For wicket to work with your custom session you should either

Re: [Wicket-user] Sessions?

2006-05-16 Thread Martijn Dashorst
Add the property to your custom Session object.public class MySession extends WebSession { private String myAttribute; // ... getters and setters}and override either of the following methods on your Application class: /** * @see wicket.Application#getSessionFactory() */ protected ISessionFactory

Re: [Wicket-user] Sessions?

2006-05-16 Thread Igor Vaynberg
HttpServletRequest request = ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest(); request.setAttribute(here, Hello world);this is wrong because you are storing the information in request scope whose lifetime is only of a single request. like maurice mentioned what you need