Client Validators Page
This page is the same as the Validators Page plus it turns on client-side validation with these 2 changes:
- It's turned on by specifying clientValidationEnabled="true" on the
Form
component. Every validator has a server-side implementation, but if it also has a client-side implementation
(usually javascript) then it will be used if the browser allows it.
- The format of the error dialog is given by declaring a stylesheet
on the Shell with
stylesheet="asset:stylesheet"
and defining the stylesheet variable in the java.
Firefox users: Due to a bug in Tapestry 4.1.2, Firefox ignores client-side validation when you use a key (such as
Enter) to press a submit button, instead of a mouse-click (https://issues.apache.org/jira/browse/TAPESTRY-1637).
To Login