Re: [hibernate-dev] Message-Templates from multiple JARs

2010-02-20 Thread Gunnar Morling
Yep, I'll look into this. Probably will come back with some questions later :-) Gunnar 2010/2/18 Emmanuel Bernard emman...@hibernate.org OK so let's prototype that then: - implement a service locator style way of declaring / finding resource bundles (not resource bundle files) -

Re: [hibernate-dev] Message-Templates from multiple JARs

2010-02-17 Thread Hardy Ferentschik
On Tue, 16 Feb 2010 18:41:12 -0300, Gunnar Morling gunnar.morl...@googlemail.com wrote: I agree with Max, I think there should be some way for packaging message bundles within components containing constraint annotations, while offering the possibility to optionally override these with

Re: [hibernate-dev] Message-Templates from multiple JARs

2010-02-16 Thread Max Rydahl Andersen
- Emmanuel Bernard emman...@hibernate.org wrote: I don't see i18n as something that should necessarily be packaged inside a component. Resource keys are generally grouped in one or two files for the overall application (so that fixing a typo is quick). You must be developing small or

Re: [hibernate-dev] Message-Templates from multiple JARs

2010-02-16 Thread Emmanuel Bernard
On 16 févr. 2010, at 09:58, Max Rydahl Andersen wrote: - Emmanuel Bernard emman...@hibernate.org wrote: I don't see i18n as something that should necessarily be packaged inside a component. Resource keys are generally grouped in one or two files for the overall application (so that

Re: [hibernate-dev] Message-Templates from multiple JARs

2010-02-16 Thread Gunnar Morling
I agree with Max, I think there should be some way for packaging message bundles within components containing constraint annotations, while offering the possibility to optionally override these with custom messages if required. With respect to large-scale enterprise apps, I guess it can become

Re: [hibernate-dev] Message-Templates from multiple JARs

2010-02-15 Thread Hardy Ferentschik
Hi, Having multiple resource bundles and some custom way of specifying these bundles is related to HV-238 and HV-251. Having a ResourceBundleLocatorStrategy should solve your problem Gunnar, right? The default strategy could behave like it does now and we can provide an additional