2009/2/9 Uwe Schäfer <schae...@thomas-daily.de>: > hi > > why is it, that setLocale(Locale) is final on Session ? > i´d really like to overwirte that in order to be able to hook some > preference-storing stuff in there, like setting cookies and/or updating > persistent preference data.
it is no longer final in rc3 > i´d understand it, if Session´s constructor would call it, but that is not > the case either, as it does an assignment to the private field: > > public Session(Request request){ > locale = request.getLocale(); > > what did i miss? yes, you missed the fact that #setLocale() marks session object as dirty - the constructor does not have to do this because the initial locale is not a change so no need to mark session as dirty. -igor > > cu uwe > > -- > > THOMAS DAILY GmbH > Adlerstraße 19 > 79098 Freiburg > Deutschland > T + 49 761 3 85 59 0 > F + 49 761 3 85 59 550 > E schae...@thomas-daily.de > www.thomas-daily.de > > Geschäftsführer/Managing Directors: > Wendy Thomas, Susanne Larbig > Handelsregister Freiburg i.Br., HRB 3947 > > Registrieren Sie sich unter http://morningnews.thomas-daily.de für die > kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages > morgens um 9:00 in Ihrer Mailbox. > > Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um > 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 > Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion > lautet redakt...@thomas-daily.de. > > > --------------------------------------------------------------------- > 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