Here's an simple example which uses required validator
@Component(type = "TextField", bindings = { "value=produkt.nazov",
"validators=validators:required", "displayName=message:nazov" })
public abstract TextField getNazov();
or
@Component(type = "TextField", bindings = { "value=kontakt.email",
"validators=validators:email", "displayName=message:email" })
public abstract TextField getEmail();
validator properties could be set by comma and parameter=value syntax
(validators:val, parameter=value)
2005/9/16, Dan Adams <[EMAIL PROTECTED]>:
> Well, the info there on the validator prefix is useful but even an
> example of using textfield would be great. i read the .jwc for the
> component but an example would very helpful.
>
> On Fri, 2005-09-16 at 19:14 +0200, Tomáš Drenčák wrote:
> > There's short article about validation:
> > http://jakarta.apache.org/tapestry/UsersGuide/validation.html
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>