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