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;
}
}
On Mon, Jun 8, 2009 at 11:34 AM, Juri Prokofievproj...@gmail.com wrote:
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 setResponsePage(HomePage.class) then
it will do the trick, but I need to stay on the same page. Is suppose it
should be a common case. Any ideas?
Thank you
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org