...
Finally, Tapestry is able to not only present the errors back to the user, but to decorate the fields and the labels for the fields, marking them as containing errors (primarily, using CSS effects).
Contents
Table of Contents |
---|
The Form Component
...
Validator | Constraint Type | Description | Example | ||
---|---|---|---|---|---|
– | Ensures that the given input is a valid e-mail address | | |||
max | long | Enforces a maximum integer value | | ||
maxLength | int | Makes sure that a string value has a maximum length | | ||
min | long | Enforces a minimum integer value | | ||
minLength | int | Does nothing (used to override a @Validate annotation) | | ||
none | – | Makes sure that a string value has a minimum length | | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="387c781f55ae9f49-b221d567-47c44404-ae24b6cc-262ac1481b44a4adc6443f44"><ac:plain-text-body><![CDATA[ | regexp | pattern | Makes sure that a string value conforms to a given pattern | | ]]></ac:plain-text-body></ac:structured-macro> |
required | – | Makes sure that a string value is not null and not the empty string | |
...