summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-02-08 10:50:35 +0200
committerArtur Signell <artur@vaadin.com>2013-02-08 10:50:35 +0200
commitc25f223ba24618aeb02e8a2062ef4bad961f56b1 (patch)
tree874e8e8eec78010dc9aec67e8c10f9c5782649d2 /server/src/com/vaadin
parent613d2c044d1c3dfeeb54112e3030dbe62282e1fc (diff)
downloadvaadin-framework-c25f223ba24618aeb02e8a2062ef4bad961f56b1.tar.gz
vaadin-framework-c25f223ba24618aeb02e8a2062ef4bad961f56b1.zip
Avoid markAsDirty for getters (#10977)
Change-Id: I3b924fb1d6641309b45b7aad30f171305d36daac
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index cdddcb02b0..06060dbf91 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -122,7 +122,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public String getId() {
- return getState().id;
+ return getState(false).id;
}
/**
@@ -233,7 +233,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public String getCaption() {
- return getState().caption;
+ return getState(false).caption;
}
/**
@@ -363,7 +363,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
* interface.
*/
public boolean isImmediate() {
- return getState().immediate;
+ return getState(false).immediate;
}
/**
@@ -423,7 +423,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public String getDescription() {
- return getState().description;
+ return getState(false).description;
}
/**
@@ -532,7 +532,7 @@ public abstract class AbstractComponent extends AbstractClientConnector
*/
@Override
public boolean isReadOnly() {
- return ((AbstractComponentState) getState(false)).readOnly;
+ return getState(false).readOnly;
}
/*
@@ -622,6 +622,11 @@ public abstract class AbstractComponent extends AbstractClientConnector
}
@Override
+ protected AbstractComponentState getState(boolean markAsDirty) {
+ return (AbstractComponentState) super.getState(markAsDirty);
+ }
+
+ @Override
public void beforeClientResponse(boolean initial) {
super.beforeClientResponse(initial);
// TODO This logic should be on the client side and the state should