Why is internationalization not working properly? JSF
Posted
by Nitesh Panchal
on Stack Overflow
See other posts from Stack Overflow
or by Nitesh Panchal
Published on 2010-06-18T13:42:51Z
Indexed on
2010/06/18
13:53 UTC
Read the original article
Hit count: 357
Hello,
This is my messages_en_US.properties
file in WEB-INF/classes
folder :-
Login=Login
And then i created messages_fr_FR.properties
:-
Login=frenchLogin
Then in my JSF page i wrote this :-
<f:loadBundle basename="messages" var="msg"/>
<h:commandButton id="btnLogin" value="#{msg.Login}" actionListener="#{IndexBean.doLogin}"/>
I can correctly see the Login text by default. But when i go in firefox and change my default language to fr-fr, my text still remains the same i.e i can't see frenchLogin.
I don't have anything in my faces-config.xml
What am i doing wrong? Thanks in advance :)
© Stack Overflow or respective owner