mejorar-detalles #77

Open
melina.gutierrez wants to merge 6 commits from mejorar-detalles into main
Showing only changes of commit cdb53c3766 - Show all commits

View File

@ -248,11 +248,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
int birthYear = birthday.getValue().getYear();
int ages = currentYear - birthYear;
age.setValue(String.valueOf(ages));
if (ages < 18) {
birthday.setInvalid(true);
} else {
birthday.setInvalid(false);
}
birthday.setInvalid(ages < 18);
System.out.println(age);
}
}