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
HttpServletRequest
request = ((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest();
request.setAttribute("here",
"Hello world");this is wrong because you are storing the information in reque
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() */ protect
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
o