This content has been marked as final.
Show 8 replies
-
1. Re: resource bundle
atao Aug 13, 2007 6:07 PM (in response to urswag)Only use "messages" to get the message map, i.e.:
<h:outputText value="#{messages['pwdchange.screen.title']}" />
even if you use different bundle names -
2. Re: resource bundle
urswag Aug 14, 2007 2:21 AM (in response to urswag)
Thanks but it does not change the effect. Simply
pwdchange.screen.title is written on the screen. -
3. Re: resource bundle
nickarls Aug 14, 2007 2:25 AM (in response to urswag)Does f:loadBundle see it?
Does it work if you just put it in messages.properties? -
4. Re: resource bundle
urswag Aug 14, 2007 4:13 AM (in response to urswag)Seam 2.0 Beta
If I try this it works. The entry in the properties file for pwdchange.screen.title is printed out correctly.<f:loadBundle basename="messagesAfn" var="messagesAfn" /> <h:outputText value="#{messagesAfn['pwdchange.screen.title']}" />
Putting the entries in the properties file named messages.properties has the same effect. It works also only if I use loadBundle. -
5. Re: resource bundle
urswag Aug 14, 2007 4:50 AM (in response to urswag)If I use it in the context with pages.xml it works.
<page view-id="/*" bundle="messagesAfn"> </page>
This works but I would to use it as a global resource. -
6. Re: resource bundle
atao Aug 14, 2007 5:54 AM (in response to urswag)What is you configuration in faces-config.xml?
What is the current value of locale? -
7. Re: resource bundle
urswag Aug 14, 2007 7:44 AM (in response to urswag)<application> <message-bundle>messages</message-bundle> <locale-config> <default-locale>en</default-locale> </locale-config> <!-- Disabled when using Ajax4JSF --> <!-- <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> --> </application>
-
8. Re: resource bundle
atao Aug 14, 2007 9:16 AM (in response to urswag)Try:
- either to remove default-locale in locale-config
- or to change the name of properties file from messagesAfn.properties to messagesAfn_en.properties