You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Donyee <xy...@gmail.com> on 2007/07/06 05:42:55 UTC

How to override the default validate message?

Hello everyone!
I want to change the default validate message,such as "You must
provide a value for ... ",
To change the source file maybe not grace! is there another way?




----徐 依伟

Re: How to override the default validate message?

Posted by Donyee <xy...@gmail.com>.
Cool, I should try this first!
It works fine!

2007/7/6, Erik Vullings <er...@gmail.com>:
> Hi Donyee,
>
> Please have a look here:
> http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner
>
> Cheers
> Erik
>
>
> On 7/6/07, Malin Ljungh <ma...@gmail.com> wrote:
> >
> > No, sorry, I use T4.
> > Don't know how it works in T5, unfortunately.
> >
> > Malin
> >
> >
> > On 7/6/07, Donyee <xy...@gmail.com> wrote:
> > >
> > > Do you use the T5? I am using t5!
> > > Thanks !
> > >
> > > 2007/7/6, Malin Ljungh <ma...@gmail.com>:
> > > > You can use the following syntax for example:
> > > >
> > > > <binding name="validators" value="validators:required[The {0} is
> > > > missing!],min=0"/>
> > > >
> > > > /Malin
> > > >
> > > > On 7/6/07, Donyee <xy...@gmail.com> wrote:
> > > > >
> > > > > Hello everyone!
> > > > > I want to change the default validate message,such as "You must
> > > > > provide a value for ... ",
> > > > > To change the source file maybe not grace! is there another way?
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ----徐 依伟
> > > > >
> > > >
> > >
> > >
> > > --
> > > ----徐 依伟
> > >
> >
>


-- 
----徐 依伟

Re: How to override the default validate message?

Posted by Erik Vullings <er...@gmail.com>.
Hi Donyee,

Please have a look here:
http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner

Cheers
Erik


On 7/6/07, Malin Ljungh <ma...@gmail.com> wrote:
>
> No, sorry, I use T4.
> Don't know how it works in T5, unfortunately.
>
> Malin
>
>
> On 7/6/07, Donyee <xy...@gmail.com> wrote:
> >
> > Do you use the T5? I am using t5!
> > Thanks !
> >
> > 2007/7/6, Malin Ljungh <ma...@gmail.com>:
> > > You can use the following syntax for example:
> > >
> > > <binding name="validators" value="validators:required[The {0} is
> > > missing!],min=0"/>
> > >
> > > /Malin
> > >
> > > On 7/6/07, Donyee <xy...@gmail.com> wrote:
> > > >
> > > > Hello everyone!
> > > > I want to change the default validate message,such as "You must
> > > > provide a value for ... ",
> > > > To change the source file maybe not grace! is there another way?
> > > >
> > > >
> > > >
> > > >
> > > > ----徐 依伟
> > > >
> > >
> >
> >
> > --
> > ----徐 依伟
> >
>

Re: How to override the default validate message?

Posted by Malin Ljungh <ma...@gmail.com>.
No, sorry, I use T4.
Don't know how it works in T5, unfortunately.

Malin


On 7/6/07, Donyee <xy...@gmail.com> wrote:
>
> Do you use the T5? I am using t5!
> Thanks !
>
> 2007/7/6, Malin Ljungh <ma...@gmail.com>:
> > You can use the following syntax for example:
> >
> > <binding name="validators" value="validators:required[The {0} is
> > missing!],min=0"/>
> >
> > /Malin
> >
> > On 7/6/07, Donyee <xy...@gmail.com> wrote:
> > >
> > > Hello everyone!
> > > I want to change the default validate message,such as "You must
> > > provide a value for ... ",
> > > To change the source file maybe not grace! is there another way?
> > >
> > >
> > >
> > >
> > > ----徐 依伟
> > >
> >
>
>
> --
> ----徐 依伟
>

Re: How to override the default validate message?

Posted by Donyee <xy...@gmail.com>.
Do you use the T5? I am using t5!
Thanks !

2007/7/6, Malin Ljungh <ma...@gmail.com>:
> You can use the following syntax for example:
>
> <binding name="validators" value="validators:required[The {0} is
> missing!],min=0"/>
>
> /Malin
>
> On 7/6/07, Donyee <xy...@gmail.com> wrote:
> >
> > Hello everyone!
> > I want to change the default validate message,such as "You must
> > provide a value for ... ",
> > To change the source file maybe not grace! is there another way?
> >
> >
> >
> >
> > ----徐 依伟
> >
>


-- 
----徐 依伟

Re: How to override the default validate message?

Posted by Malin Ljungh <ma...@gmail.com>.
You can use the following syntax for example:

<binding name="validators" value="validators:required[The {0} is
missing!],min=0"/>

/Malin

On 7/6/07, Donyee <xy...@gmail.com> wrote:
>
> Hello everyone!
> I want to change the default validate message,such as "You must
> provide a value for ... ",
> To change the source file maybe not grace! is there another way?
>
>
>
>
> ----徐 依伟
>