FormComponent formComponent1 = new RequiredTextField("dateOfBirth1");
FormComponent formComponent2 = new RequiredTextField("dateOfBirth2");
form.add(formComponent1);
form.add(formComponent2);
form.add(new EqualInputValidator(formComponent1, formComponent2));
form.add(new RequiredTextField("rangeLong", Long.class)
.add(new RangeValidator(10L, 20L)));
// Seems not to be supported by Yav yet