Manually switching locale has been created by Will Hoover (Feb 13, 2008).

Content:

To manually switch the locale:

public final MyPage extends WebPage {

	...

	add(new Link("languageSwitch") {

		@Override
		public void onClick() {
			Locale locale = new Locale(MyPage.this.getString("header.versionLanguage"));
			this.getSession().setLocale(locale);
		}

	});

	...

}

Reply via email to