-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I'm trying to change the language of my application with buttons. I've been reading similar threads but the solutions did not work for me. I must refresh the page (F5) to see the changes.
I'm handling the 'english button' this way:
Locale preferredLocale = new Locale("en");
Sessions.getCurrent().setAttribute("px_preferred_locale", preferredLocale);
event.getPage().invalidate();
The invalidate matter is just refresing the foot of my page (an include) and just when I click the button twice.
Hi Kuikiker,
Can you provide a runnable sample? thx.
Asked: 2009-03-09 11:02:41 +0800
Seen: 159 times
Last updated: Mar 13 '09