Tapestry Validators

Here we demonstrate tapestry's second declarative style of validation: Tapestry Validators.
They have largely been made redundant by Bean Validation (JSR 303), but they are still supported,
and the two styles can be used together.

In this example the TextFields specify validate="required, maxlength=10".

First Name

(required, maxLength=10)

Last Name

(required, maxLength=10)

All Tapestry Validators have a server-side implementation, and most have a client-side implementation.
If the form passes client-side validation, then it is sent to the server, where, for safety, it is validated again.
To turn off client-side validation programatically, set Form's clientValidation parameter.