This content has been marked as final.
Show 5 replies
-
1. Re: Portlets and ResourceBundle
mholzner Feb 22, 2005 5:38 PM (in response to mholzner)sorry, the xml in the prev. post got mingled up a bit. The portlet.xml entries are ok in the real thing.....
-
2. Re: Portlets and ResourceBundle
julien1 Feb 22, 2005 6:24 PM (in response to mholzner)you need to declare the supported locale in the deployment descriptor, otherwise it does not know it must use you resource bundle for those language.
<supported-locale>en</supported-locale>
The code to decide which bundle to use is based on that.
If you do not specify any supported locale, then it will use com.blah.Blah.properties and if it does not exist, com.blah.Blah_en.properties.
Now I need to check what should return getLocale on the resource bundle, because the null return seems odd to me. -
3. Re: Portlets and ResourceBundle
mholzner Feb 23, 2005 10:18 AM (in response to mholzner)hmm, sorry I forgot to mention those: they are already there
.......
<supported-locale>en</supported-locale>
<supported-locale>fr</supported-locale>
<resource-bundle>com.blah.Blah</resource-bundle>
....... -
4. Re: Portlets and ResourceBundle
julien1 Feb 23, 2005 10:44 AM (in response to mholzner)do you have a test case ?
-
5. Re: Portlets and ResourceBundle
julien1 Feb 23, 2005 10:45 AM (in response to mholzner)with a small test case I can see what is going on and fix it.