Dave, First off, I'm no expert on message bundles, and I've never used one yet :)
I was reading the JSF 1.2 spec yesterday, and it seemed to me that you could only specify one message bundle. However, there's nothing stopping you from writing your own message-bundle implementation that takes a collection of other message-bundles (and implicitly includes the default bundle as well) and cycles through them in order (or reverse order) until a matching key is found. I'd find such functionality extremely useful when I do finally get around to using message bundles. I think it'd be a worthy addition to MyFaces tomahawk. -Mike On 10/26/05, Dave Brondsema <[EMAIL PROTECTED]> wrote: > > Is there a way to use multiple <message-bundle>s? I have a jar file > that provides common functionality to our JSF apps and it overrides the > default JSF messages by defining the following in META-INF/faces-config.xml: > > <application> > <message-bundle> > edu.cornerstone.jsf.util.JSFInlineMessages > </message-bundle> > </application> > > And if I also use the jenia4faces jar file which has a few of its own > messages: > > <application> > <message-bundle>org.jenia.faces.Messages</message-bundle> > <locale-config> > <default-locale>en</default-locale> > </locale-config> > </application> > > Only one of those will get used. Right now it seems that the > jenia4faces takes precedence (it is loaded later alphabetically) and my > overridden messages don't take effect. The standard JSF messages are used. > > Is there any workaround for this? > > -- > Dave Brondsema > Software Developer > Cornerstone University > > >

