All Methods Instance Methods Abstract Methods Modifier and Type Method Description
validate(T value)Invoked after the client-submitted value has been
translatedto check that the value conforms to expectations (often, in terms of minimum or maximum value).
void validate(T value) throws ValidationExceptionInvoked after the client-submitted value has been
translatedto check that the value conforms to expectations (often, in terms of minimum or maximum value). If and only if the value is approved by all Validators is the value applied by the field.
value- the translated value supplied by the user
ValidationException- if the value violates the constraint
void render(MarkupWriter writer)Invokes
Validator.render(Field, Object, org.apache.tapestry5.ioc.MessageFormatter, MarkupWriter, org.apache.tapestry5.services.FormSupport). This is called at a point "inside" the tag, so that additional attributes may be added. In many cases, the underlying
writer- markup writer to direct output to.
- See Also:
- true if the field is required (a non-blank value is expected)