Hey Vincent,
What I would do is override getSessionFactory in
your application class, something like this:
@Override
protected ISessionFactory getSessionFactory() { return new ISessionFactory() { public Session newSession()
{
return new MySessionObject(YourApplicationClass.this); } }; } Now MySessionObject is a subclass of WebSession
(You'll want to look at this class). In your pages you would do something
like:
((MySessionObject)getSession()).getUsername();
Make sense?
|
- Re: [Wicket-user] objects in session Igor Vaynberg
- Re: [Wicket-user] objects in session Jonathan Cone
- Re: [Wicket-user] objects in session Vincent Jenks
- Re: [Wicket-user] objects in session Jonathan Cone
- Re: [Wicket-user] objects in session Igor Vaynberg
- Re: [Wicket-user] objects in session Vincent Jenks
- Re: [Wicket-user] objects in session Igor Vaynberg
- Re: [Wicket-user] objects in ses... Vincent Jenks
- Re: [Wicket-user] objects in... Igor Vaynberg
- Re: [Wicket-user] objects in... Vincent Jenks
- Re: [Wicket-user] objects in... Johan Compagner
- Re: [Wicket-user] objects in... Vincent Jenks