Hi!

I would like to know if there are more people having the same issue as me with the ValidationMessagesSource configuration/contribution.

I've added this method to my AppModule.

public static void contributeValidationMessagesSource(Configuration<String> configuration) {
        configuration.add("classpath:/ValidationMessages");
}

After a lot of digging and debugging in the tapestry-core sources, I've found that in the ValidationMessagesSourceImpl.ValidationMessagesSourceImpl(Collection<String> bundles, Resource classpathRoot, URLChangeTracker tracker), that my ValidationMessages.properties is used as the parent bundle to the default Tapestry validation properties file. It should be exactly the other way. My validation messages do not override the defaults.

Shouldn't the ValidationMessagesSource service receive an OrderedConfiguration intead of a Configuration? The ordering of the contributions seems to be an issue here.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to