Yeah I can confirm what Daniel are saying.. I have the same approach.. On the otherhand if it's an ajax link you'll need to add all the components you want rerendered.

Daniel Stoch wrote:
Hi,

But what exactly not work?

I'm using a Link with onClick() code:
getSession().setLocale(locale);
to swicth current locale and everything works ok. All page components
are localized correctly.

I think this  setResponsePage(this.getPage()); call in your code is
not necessary:
                @Override
                public final void onClick() {
                        Locale locale = new Locale("en");
                        this.getSession().setLocale(locale);
                        setResponsePage(this.getPage());
                }


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to