Skip to main content

Resource Bundle embedded in a component library

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
joserodolfo.freitas
Offline
Joined: 2011-05-12

Hello,

does anyone know if it's possible to change the default resource and message bundle for an application through a jsf component library? I know that the application itself can change it through a config in faces-config. but what if the component library would like to provide some customized messages?
Apparently, putting the config at my faces-config componentlib.jar won't effect my application war.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joserodolfo.freitas
Offline
Joined: 2011-05-12

Hm, I just found out that the problem is that the war had also a declared message-bundle so the componentlib's was overwritten.

Is there a way to combine them and to not ovewrite the whole message-bundle file but only the messages in case they are duplicated?