public void onClick(ClickEvent event) {
Form<DiscoveryGroup> actualForm = form.getForm();
FormValidation validation = actualForm .validate();
if(!validation.hasErrors()) {
DiscoveryGroup entity = actualForm.getUpdatedEntity();
presenter.onCreateDiscoveryGroup(entity);
}
}
},
new ClickHandler() {