Re: Wicket Session Lifecycle Methods????

2010-03-30 Thread Istvan Soos
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
 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
>>  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-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Session Lifecycle Methods????

2010-03-30 Thread corneliu.petrescu
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
>  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-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Session Lifecycle Methods????

2010-03-30 Thread Istvan Soos
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
 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket Session Lifecycle Methods????

2010-03-30 Thread corneliu.petrescu
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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org