jsf 2 - JSF 2 - Multi language support issue -
a part of faces-config.xml file this:
<locale-config> <default-locale>el</default-locale> <supported-locale>en</supported-locale> </locale-config> <resource-bundle> <base-name>com.application.model.resources.labels</base-name> <var>labels</var> </resource-bundle>
i have files labels_el.properties , labels_en.properties in corresponding package/folder.
the problem this:
firefox
when start application, texts in greek language (default locale). whenever click on commandbutton or commandlink, texts changed in english language. however, locale remains in greek (el).
chrome
the application starts correctly in greek language , during page navigation language remains same. have dropdown list can change locale. when change locale english (en), tha page refreshed correctly. after that, when click on commandbutton or commandlink, locale's value remains in english, text changes again greek.
hence, problem during page navigation, language in firefox changes english , in chrome changes greek (the locale doesn't change unless select desired 1 dropdown list).
any solution issue?
you have use <f:view/>
tag locale
attribute, should bound sessionscoped
bean variable (or scope, if want specific part of application in different language). render current view based in locale value.
Comments
Post a Comment