This content has been marked as final.
Show 4 replies
-
1. Re: messages.properties are not loaded when included in a ja
pmuir Aug 22, 2007 5:25 AM (in response to pnorman4)properties are loaded off the classpath so that should work fine. How do you load the properties files?
You'll need them all to be differently named otherwise they'll all occupy the same name on the classpath -
2. Re: messages.properties are not loaded when included in a ja
pnorman4 Aug 23, 2007 3:39 AM (in response to pnorman4)Tanks
By naming my message bundles differently I could get them all loaded.
The only thing is that I now need to specify each bundle in components.xml, which resides in the generic web application. That means that for each new plug-in I have to update the web application. It would be better if the plugin could point out its own message bundle.
I tried to addorg.jboss.seam.core.resourceBundle.bundleNames=plugin_specific_messages
in seam.properties (as in 13.2.1 in the Seam 1.2.1 reference), but it didn't work.
Question: Is there a way to inside a jar-file configure Seam to add a new message bundle? -
3. Re: messages.properties are not loaded when included in a ja
pmuir Aug 23, 2007 5:34 AM (in response to pnorman4)You could provide your own implementation of the the resourceBundle component that implements your custom bundle name resolving strategy.
-
4. Re: messages.properties are not loaded when included in a ja
pnorman4 Aug 23, 2007 6:11 AM (in response to pnorman4)Ok. That's a good idéa. Thanks for your time!