diff options
author | Tatu Lund <tatu@vaadin.com> | 2021-10-27 16:36:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 16:36:06 +0300 |
commit | fbbb689925274e0af49df14c5ac05a12759fae31 (patch) | |
tree | b6f2db5793498d630e4341b53d8718b69894f436 /server/src/main | |
parent | 51d403f07d33add4332ad97823218a1040422ac8 (diff) | |
download | vaadin-framework-fbbb689925274e0af49df14c5ac05a12759fae31.tar.gz vaadin-framework-fbbb689925274e0af49df14c5ac05a12759fae31.zip |
fix: don't update bean property which is read-only bound (#12457)
Diffstat (limited to 'server/src/main')
-rw-r--r-- | server/src/main/java/com/vaadin/data/Binder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/data/Binder.java b/server/src/main/java/com/vaadin/data/Binder.java index e969a032f7..9726f54345 100644 --- a/server/src/main/java/com/vaadin/data/Binder.java +++ b/server/src/main/java/com/vaadin/data/Binder.java @@ -1258,7 +1258,7 @@ public class Binder<BEAN> implements Serializable { TARGET originalValue = getter.apply(bean); convertAndSetFieldValue(originalValue); - if (writeBackChangedValues && setter != null) { + if (writeBackChangedValues && setter != null && !readOnly) { doConversion().ifOk(convertedValue -> { if (!Objects.equals(originalValue, convertedValue)) { setter.accept(bean, convertedValue); |