But I want to do it globally, say, for all number validators ... Not only
for specific bean instance...
----- Original Message -----
From: "Chris Norris" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Tuesday, October 18, 2005 3:55 PM
Subject: Re: Specifying validating messages ?
I think if you define that translator as a bean and set the message property
for the bean, that should work. Look at the AbstractTranslator and
NumberTranslator classes, the code is mostly in there.
On 10/18/05, Vjeran Marcinko <[EMAIL PROTECTED]> wrote:
Hi.
First time using 4.0 validating mechanism, so some questions have risen:
1. Is it possible to specify error message inside binding string for
*translator* when it can't translate some value, similar to validators
where
I can put something like validator:required[This is required]. It seems to
me that translator:number[Value has to be numeric] doesn't work ?!
2. How do I override default validation messages ? I am interested in both
declarative (using some .property file) and programmatic way?
3. Is there any use of ValidationConstraints? Should it be deprecated ?
Regards,
Vjeran
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.1/136 - Release Date: 15.10.2005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]