Hello,
I'm having problems with my
JSF pages that I simply don't find the answer anywhere.
I have a page with f:view to localize my message and my resources (some graphicImages and commandButtond with image attribute).
The user himself is able to choose the locale from a list of available locales filled out on a selectOneMenu from reading supported-locale tags at faces-config.
When the user chages the SelectOneMenu, all the localized messages changes to the new language, but the images don't.
I have these files:
bundles.messages_en.properties
bundles.messages_pt_BR.properties
bundles.messages_fr.properties
All of them have the line:
(or english, or french)
In my faces-config.xml:
I've tested with different browsers with different Accept-Language and I can see images from english, portuguese and french directories. The problem is the user input. When he changes, only my resource bundles (which have been loaded by resource-bundle tag or f:loadBundle) change.
I've tested with
which brought me another problem (I had to refresh the after changing the selectOneMenu). Now I'm using:
and in my bean:
I solved the refresh problem but still have the images based only on Accept-Language browsers head.
Any help?
Sorry about my poor english.