public boolean isVisible()
{
return form.isSubmitted() && (!form.hasError());
}
});
form.add(new PropertyValidation());
form.add(new TextField("email1", new PropertyModel<String>(this.dummy, "validatableBean.email")));
form.add(new TextField("email2", new PropertyModel<String>(this.dummy, "nonValidatableBean.email")));
}