Not possible cause "What should I do when I don't have the MySessionImpl class visible". The class need to be visible to do that.
-----Ursprüngliche Nachricht----- Von: Joseph Pachod [mailto:[email protected]] Gesendet: Donnerstag, 21. Januar 2010 17:26 An: [email protected] Betreff: Re: AW: get set attribute wicket session Giambalvo, Christian wrote: > Hi, > > with getSession() you will always get the session attached to the current > request. > So yes it is session specific. > > Greets chris I would add that, in order to save this nasty cast all over the place, you could create your own getMySessionImpl this way : class MySessionImpl public static MySessionImpl getMySessionImpl(){ return (MySessionImpl) get(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
