From 249a8cb1eeb18b3ad255fd01a7c50fccbc4a20b7 Mon Sep 17 00:00:00 2001 From: Melina Gutierrez Date: Sat, 9 Nov 2024 13:03:06 -0400 Subject: [PATCH] #45-Registro Semanal de Horas Trabajadas corregir employee --- .../java/com/primefactorsolutions/views/EmployeeView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/primefactorsolutions/views/EmployeeView.java b/src/main/java/com/primefactorsolutions/views/EmployeeView.java index dd7ad12..35b99ad 100644 --- a/src/main/java/com/primefactorsolutions/views/EmployeeView.java +++ b/src/main/java/com/primefactorsolutions/views/EmployeeView.java @@ -188,7 +188,7 @@ public class EmployeeView extends BeanValidationForm implements HasUrl initDialog(); } - private void validateNameField(TextField textField, String value) { + private void validateNameField(final TextField textField, final String value) { if (!value.matches("^[a-zA-ZáéíóúÁÉÍÓÚñÑ\\s]*$")) { textField.setInvalid(true); textField.setErrorMessage("Este campo solo debe contener letras."); @@ -267,7 +267,7 @@ public class EmployeeView extends BeanValidationForm implements HasUrl ComboBox comboBox = new ComboBox<>("Estado"); comboBox.setItems(Employee.Status.values()); comboBox.setItemLabelGenerator(Employee.Status::name); - comboBox.setRequiredIndicatorVisible(true); // Indicador de campo requerido + comboBox.setRequiredIndicatorVisible(true); return comboBox; }