Was there a way to do it globally in the old version? With the new ones, and
I forgot this when I wrote the above email, you can specify things when
using the translator: tag like so:

translator="translator:number,omitZero=false"

You could probably do something like "translator:number,message=something"
althought I'm not entirely sure on how to get a whole string in there. But
that's not global, either. Your best bet may be to make a custom translator.


On 10/18/05, Vjeran Marcinko <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>

Reply via email to