#45-Registro Semanal de Horas Trabajadas corregir employee
Some checks failed
PR Builder / Build-PR (pull_request) Failing after 2m47s
Some checks failed
PR Builder / Build-PR (pull_request) Failing after 2m47s
This commit is contained in:
parent
b58a833444
commit
249a8cb1ee
@ -188,7 +188,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
|||||||
initDialog();
|
initDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void validateNameField(TextField textField, String value) {
|
private void validateNameField(final TextField textField, final String value) {
|
||||||
if (!value.matches("^[a-zA-ZáéíóúÁÉÍÓÚñÑ\\s]*$")) {
|
if (!value.matches("^[a-zA-ZáéíóúÁÉÍÓÚñÑ\\s]*$")) {
|
||||||
textField.setInvalid(true);
|
textField.setInvalid(true);
|
||||||
textField.setErrorMessage("Este campo solo debe contener letras.");
|
textField.setErrorMessage("Este campo solo debe contener letras.");
|
||||||
@ -267,7 +267,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
|||||||
ComboBox<Employee.Status> comboBox = new ComboBox<>("Estado");
|
ComboBox<Employee.Status> comboBox = new ComboBox<>("Estado");
|
||||||
comboBox.setItems(Employee.Status.values());
|
comboBox.setItems(Employee.Status.values());
|
||||||
comboBox.setItemLabelGenerator(Employee.Status::name);
|
comboBox.setItemLabelGenerator(Employee.Status::name);
|
||||||
comboBox.setRequiredIndicatorVisible(true); // Indicador de campo requerido
|
comboBox.setRequiredIndicatorVisible(true);
|
||||||
return comboBox;
|
return comboBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user