This will demonstrate all the features that are implemented in the Wikcey yav integration

Type validation

Yav can check if the input is of kind "date" or "integer" or decimal "double". It uses for that the model bound to the component.
Date 1 () Uses the local on the wicket application to configure the date yav format. Please note that actually the yav library only supports any combination of the following (dd and MM and yyyy)
Date 2 () Custom Wicket message defined for this field and for DateConverter. See TestPage.properties
Integer
Double

Inline Validation

This is to show how to use Yav to display the message in front of the field instead of the feedback panel. A span needs to be added in front of the field with a specific id. errorsDiv + the input wicketId. in this case id="errorsDiv_typeBigDecimal"
BigDecimal

StringValidator

Testing all the Wicket default String validators
Max 10 char :
Min 10 char :
Exactly 10 char :
Between 10 and 20 :
Email :
Pattern *.com : Uses new Model() and not the model defined on the form.

IFormValidator

Tests the validator specific to the form. Mainly EqualInputValidator
Date of Birth 1 Configured in YAV and taken from the App Server local :
Date of Birth 2 Should be equal to dateOfBirth1.

IValidator

Tests the validator specific to the form. Only RangeValidator ported to YAV for now, and not the Max, Min and CompoundValidator
Range long (10 -> 20):