aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main')
-rw-r--r--server/src/main/java/com/vaadin/data/Binder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java
index 4230bd379a..d4501955d6 100644
--- a/server/src/main/java/com/vaadin/data/Binder.java
+++ b/server/src/main/java/com/vaadin/data/Binder.java
@@ -485,6 +485,7 @@ public class Binder<BEAN> implements Serializable {
FIELDVALUE fieldValue = field.getValue();
Result<TARGET> dataValue = converterValidatorChain.convertToModel(
fieldValue, ((AbstractComponent) field).getLocale());
+ fireStatusChangeEvent(dataValue);
return dataValue;
}
@@ -554,7 +555,7 @@ public class Binder<BEAN> implements Serializable {
return newBinding;
}
- private void fireStatusChangeEvent(Result<?> result) {
+ private void fireStatusChangeEvent(Result<TARGET> result) {
ValidationStatusChangeEvent event = new ValidationStatusChangeEvent(
getField(),
result.isError() ? ValidationStatus.ERROR
@@ -716,7 +717,6 @@ public class Binder<BEAN> implements Serializable {
List<ValidationError<?>> resultErrors = new ArrayList<>();
for (BindingImpl<BEAN, ?, ?> binding : bindings) {
Result<?> result = binding.validate();
- binding.fireStatusChangeEvent(result);
result.ifError(errorMessage -> resultErrors
.add(new ValidationError<>(binding.field, errorMessage)));
}