Also of note, the "string" part of the validator is not needed. and in
fact none of the type validators are needed as I believe they are
being replaced by the translators. there are examples of these in the
distribution under 'examples'  :)

Hope this helps!
-Nick

On 9/16/05, Dan Adams <[EMAIL PROTECTED]> wrote:
> well, this is very confusing because the docs are totally incorrect on
> the site (or rather they should be updated to include "validators:").
> After some digging through I code I found out that if you do
> validator:string,required it creates a StringValidator with
> required=true which implements IValidator whereas if you do
> validators:required it creates a Required object that implements
> Validator.
> 
> fyi: to find available validators to use with TextField look in
> org.apache.tapestry.form.validator. Currently there are the following:
> 
> Email
> Max
> MaxDate
> MaxLength
> Min
> MinDate
> MinLength
> Pattern
> Required
> 
> :)
> 
> On Fri, 2005-09-16 at 20:39 +0200, Tomáš Drenčák wrote:
> > I did the same mistake like you:). For validators prefix is validators
> > not validator!
> >
> > <input jwcid="[EMAIL PROTECTED]" type="text"
> > value="ognl:site.school.name"   displayName="message:label.schoolname"
> > validators="validators:string,required" />
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to