Re: Bean Validation Localization

2012-03-06 Thread derkoe
27;s the code and the link to the running version of a simple crud app with jsr303: https://github.com/derkoe/tapestry-javamagazin http://tapestry-javamagazin2.cloudfoundry.com/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/Bean-Va

Re: Bean Validation Localization

2012-03-06 Thread Igor Drobiazko
Tapestry provides its own MessageInterpolator which is the wrapper around the default one. Tapestry's interpolator is using ThreadLocale#getLocale() in MessageInterpolator#interpolate without Locale parameter. Check this out. https://svn.apache.org/repos/asf/tapestry/tapestry5/trunk/tapestry-beanv

Bean Validation Localization

2012-03-05 Thread Christian Köberl
There seems to be a bug in the localization of the bean validation error messages. When I start my server locale is "de" and the client locale is "en" the message is displayed in German "First Name kann nicht null sein". I guess the bug is in BeanFieldValidator#interpolateMessage - this calls Mes