Skip to content
Snippets Groups Projects
Commit 2f1a9821 authored by Goik Martin's avatar Goik Martin
Browse files

Bugfix initial validation

parent 65a89b83
No related branches found
No related tags found
No related merge requests found
......@@ -75,12 +75,10 @@ public class Register extends CustomComponent implements View, ValidateGlobal {
userForm.buildAndBind("Password", "password", PasswordField.class);
mainLayout.addComponents(password1Field);
userForm.setValidationVisibility(false);
userForm.setBuffered(true);
userForm.setItemDataSource(user);
password2Field.addValidator(new ValidateSecondIdenticalInput(password1Field));
((AbstractField<?>) password2Field).setValidationVisible(false);
mainLayout.addComponents(password2Field);
cancelButton.addClickListener(new ClickListener() {
......@@ -112,7 +110,8 @@ public class Register extends CustomComponent implements View, ValidateGlobal {
validateGlobal();
}
});
userForm.setValidationVisibility(false);
((AbstractField<?>) password2Field).setValidationVisible(false);
}
public void validateGlobal() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment