You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "corneliu.petrescu" <co...@theredpoint.ro> on 2010/03/30 09:56:35 UTC
Wicket Session Lifecycle Methods????
Hey,
I'm trying to store user application configuration in the session:
things like prefered style, prefered locale, etc...
Basically i store these things in a DB table for each user. When a user
logs in i load his settings into the WebSession, the problem is when i
have to persist the changes the user made as i can't find any
onSessionExpired, onLogout handlers.
The only thing i have is sessionDestroyed ... but its not enough since
at that moment the session does not exist anymore.
Any ideeas guys?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket Session Lifecycle Methods????
Posted by Istvan Soos <is...@gmail.com>.
I meant that you probably have some forms in the application where you
change these. Persist at that point, before/after calling the
session's setters...
Regards,
Istvan
On Tue, Mar 30, 2010 at 10:18 AM, corneliu.petrescu
<co...@theredpoint.ro> wrote:
> That was my first ideea but i can't since
> Session.getStyle, Session.setStyle are final. :(
>
> On Tue, 2010-03-30 at 10:06 +0200, Istvan Soos wrote:
>> Why don't you persist when do user actually does the change (on the interface)?
>>
>> Regards,
>> Istvan
>>
>> On Tue, Mar 30, 2010 at 9:56 AM, corneliu.petrescu
>> <co...@theredpoint.ro> wrote:
>> > Hey,
>> > I'm trying to store user application configuration in the session:
>> > things like prefered style, prefered locale, etc...
>> > Basically i store these things in a DB table for each user. When a user
>> > logs in i load his settings into the WebSession, the problem is when i
>> > have to persist the changes the user made as i can't find any
>> > onSessionExpired, onLogout handlers.
>> > The only thing i have is sessionDestroyed ... but its not enough since
>> > at that moment the session does not exist anymore.
>> > Any ideeas guys?
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket Session Lifecycle Methods????
Posted by "corneliu.petrescu" <co...@theredpoint.ro>.
That was my first ideea but i can't since
Session.getStyle, Session.setStyle are final. :(
On Tue, 2010-03-30 at 10:06 +0200, Istvan Soos wrote:
> Why don't you persist when do user actually does the change (on the interface)?
>
> Regards,
> Istvan
>
> On Tue, Mar 30, 2010 at 9:56 AM, corneliu.petrescu
> <co...@theredpoint.ro> wrote:
> > Hey,
> > I'm trying to store user application configuration in the session:
> > things like prefered style, prefered locale, etc...
> > Basically i store these things in a DB table for each user. When a user
> > logs in i load his settings into the WebSession, the problem is when i
> > have to persist the changes the user made as i can't find any
> > onSessionExpired, onLogout handlers.
> > The only thing i have is sessionDestroyed ... but its not enough since
> > at that moment the session does not exist anymore.
> > Any ideeas guys?
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket Session Lifecycle Methods????
Posted by Istvan Soos <is...@gmail.com>.
Why don't you persist when do user actually does the change (on the interface)?
Regards,
Istvan
On Tue, Mar 30, 2010 at 9:56 AM, corneliu.petrescu
<co...@theredpoint.ro> wrote:
> Hey,
> I'm trying to store user application configuration in the session:
> things like prefered style, prefered locale, etc...
> Basically i store these things in a DB table for each user. When a user
> logs in i load his settings into the WebSession, the problem is when i
> have to persist the changes the user made as i can't find any
> onSessionExpired, onLogout handlers.
> The only thing i have is sessionDestroyed ... but its not enough since
> at that moment the session does not exist anymore.
> Any ideeas guys?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org