Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

[T5] Contribution to ValidationMessagesSourcedoes not work

Thiago H de Paula Figueiredo

2008-10-29


Author LoginPost Reply
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: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.