Hi,

To generalize messages overrides for all form, you can contribute to
ValidationMessagesSource service in your AppModule class with your own
property file.

See Tapestry code below for default validation messages properties :

    public void
contributeValidationMessagesSource(OrderedConfiguration<String>
configuration)
    {
        configuration.add("Default",
"org/apache/tapestry5/internal/ValidationMessages", "before:*");
    }

Regards,
Christophe.

2010/1/7 xfile80303 <[email protected]>

>
> Hi all,
>
> I'm trying to override the default validation message for a textfield with
> a
> min and max validator set:
>
> <input type="text" size="1" t:type="textfield" t:value="quantity"
> t:id="quantity" t:validate="required,min=0,max=100000"/>
>
> and I've not been able to find the property key to use to override the
> error
> message which is displayed when a user enters a non-number.
>
> I have found the message defined in ValidationMessages.properties in the
> codebase as:
>
> integer-format-exception
>
> But specifying that key in my messages catalog has no impact.
>
> Thanks,
>
> Levi
> --
> View this message in context:
> http://n2.nabble.com/T5-Overriding-integer-validation-message-tp4264104p4264104.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to