arreglar-funcionalidad #84
@ -184,7 +184,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
||||
LocalDate selectedDate = event.getValue();
|
||||
if (selectedDate != null && ChronoUnit.YEARS.between(selectedDate, LocalDate.now()) < 18) {
|
||||
birthday.setInvalid(true);
|
||||
birthday.setErrorMessage("El empleado debe ser mayor de 18 años");
|
||||
birthday.setErrorMessage("El empleado debe ser mayor o tener 18 años");
|
||||
} else {
|
||||
birthday.setInvalid(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user