0

Changing Locale

asked 2009-03-09 11:02:41 +0800

Kuikiker gravatar image Kuikiker
144

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.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-03-13 06:15:59 +0800

windperson gravatar image windperson
415 1

Hi Kuikiker,
Can you provide a runnable sample? thx.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-03-09 11:02:41 +0800

Seen: 159 times

Last updated: Mar 13 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More