Page Created :
WICKET :
Manually switching locale
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); } }); ... } |
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Unsubscribe or edit your notifications preferences