Empleado con las revisiones
This commit is contained in:
parent
2d6c2e4327
commit
da02e7dfde
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user