It make sense, it just seems like a lot of work to tap into session values.
I suppose if I had a single getter/setter that used an Object parameter I could make something that behaved more like the HttpSession when used in JSP/Servlets...but then I've got to override getSessionFactory() in every Application class I want to use it in.
Anyhow, thanks for your help!
On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
yep.
-IgorOn 3/16/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:MySessionObject being a class you created subclassing WebSession?On 3/16/06, Jonathan Cone <[EMAIL PROTECTED] > wrote: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?----- Original Message -----From: Vincent JenksSent: Thursday, March 16, 2006 5:01 PMSubject: [Wicket-user] objects in sessionIf objects used in a page are stored in a session, how do I access those objects when I redirect to a new page? Say I have public users who login and I want to display their name on pages and keep their user info in-session...on each page, how would I call those values?
Thanks!
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.3/281 - Release Date: 3/14/2006