page refresh after setLocale

2009-06-08 Thread Juri Prokofiev
I have a link that just changes a locale. How is it possible to refresh the same page after setting the locale? The problem is that after I click the link the translation links are changed, but the content(that comes from hibernate) of the page is still the same in different language. If I add a

Re: page refresh after setLocale

2009-06-08 Thread Jonas
I think you just have to make sure the locale-dependent strings are not 'static' within the page. e.g. don't use new Model(My localized label from db) but something like new LoadableDetachableModel() { protected Object load() { return the string, taking the current locale into account;