Well, i tried the following:
<input jwcid="[EMAIL PROTECTED]" type="text"
value="ognl:site.school.name" displayName="message:label.schoolname"
validators="validator:string,required" />
but when it does the rewind it throws an exception. i traced into the
source the string validator it creates is
org.apache.tapestry.valid.StringValidator which is correct except that
it implements IValidator and it gets cast to
org.apache.tapestry.form.validator.Validator which does not extend
IValidator. This looks like it might be a bug or I am doing something
wrong or both.
On Fri, 2005-09-16 at 20:11 +0200, Tomáš Drenčák wrote:
> 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)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]