-Igor
On 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