Re: T5.3: customize validation messages (2)

2011-08-10 Thread stephanos2k
Hm, I just noticed that on deployment this line appears in the logs:
/Could not add object with duplicate id 'ValidationMessages'.  The
duplicate object has been ignored./

So what am I supposed to do - contribute my customized validation messages
at first somehow or use a different id?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-2-tp4681506p4685253.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5.3: customize validation messages (2)

2011-08-09 Thread stephanos2k
In a 
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-td4659356.html
previous post  I was trying to figure out how to customize the validation
messages and came up with this (using Scala):

/ def contributeComponentMessagesSource(assetSource: AssetSource,
  config:
OrderedConfiguration[Resource]) {
config.add("ValidationMessages",
  
assetSource.resourceForPath("com/mycompany/ValidationMessages.properties"),
   *"before:AppCatalog"*)
}/

*The problem is that it's not deterministic: sometimes it works and
sometimes it doesn't.*

I assume that the last parameter "before:..." is responsible, but I can't
figure out how ("after:" also didn't work).

Any suggestions?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-2-tp4681506p4681506.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org