aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/data/Binder.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java/com/vaadin/data/Binder.java')
-rw-r--r--server/src/main/java/com/vaadin/data/Binder.java2
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);