email.add(EmailAddressValidator.getInstance());
add(email);
add(new TextField<String>("adresses.phone"));
add(new CheckBox("sendSMS"));
DateTextField age = new DateTextField("age");
DatePicker datePicker = new DatePicker() {
private static final long serialVersionUID = 1L;
@Override
protected String getAdditionalJavaScript() {
return "${calendar}.cfg.setProperty(\"navigator\",true,false); ${calendar}.render();";
}
};
datePicker.setShowOnFieldClick(true);
datePicker.setAutoHide(true);
age.add(datePicker);
add(age);
add(new TextField<String>("adresses.street"));
add(new TextField<String>("adresses.additionalname"));
add(new TextField<String>("adresses.zip"));