A part of my faces-config.xml file is 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 also have the files Labels_el.properties and Labels_en.properties in the corresponding package/folder.
The problem is this:
Firefox
When I start the application, all texts are in Greek language (default locale). Whenever I click on a commandButton or commandLink, all texts are changed in English language. However, the locale remains in Greek (el).
Chrome
The application starts correctly in Greek language and during page navigation the language remains the same. I have a dropdown list where I can change the locale. When I change the locale to English (en), tha page is refreshed correctly. After that, when I click on a commandButton or commandLink, the locale's value remains in English, but the text changes again to Greek.
Hence, the problem is that during page navigation, the language in Firefox changes to English and in Chrome changes to Greek (the locale doesn't change unless I select the desired one from the dropdown list).
Any solution to this issue?
locale
attribute forf:view
tag. – Xtreme Biker