summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorFabian Lange <lange.fabian@gmail.com>2014-06-23 14:25:26 +0200
committerVaadin Code Review <review@vaadin.com>2014-06-23 17:35:33 +0000
commit20f6f754dfdefece3ea0f0b3ccebc4d1f1851ed3 (patch)
treedbdcb7ad5b950d9aa57d0a3e1bf67b3f526304ac /server
parentd2b0e97c9fb43c1cf84947b42a6de6d58b2368ca (diff)
downloadvaadin-framework-20f6f754dfdefece3ea0f0b3ccebc4d1f1851ed3.tar.gz
vaadin-framework-20f6f754dfdefece3ea0f0b3ccebc4d1f1851ed3.zip
Reading properties of components should not set state to dirty (#14060).
Adding 3 getStates() which were missed in https://github.com/vaadin/vaadin/commit/0c229ae91460fedaeb557bdc5a646433658b0dfb Change-Id: Ide7949046e4cc3f36c08f419f3010a98e348642c
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Form.java9
-rw-r--r--server/src/com/vaadin/ui/Window.java2
2 files changed, 8 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/Form.java b/server/src/com/vaadin/ui/Form.java
index 5653a83cee..039108a578 100644
--- a/server/src/com/vaadin/ui/Form.java
+++ b/server/src/com/vaadin/ui/Form.java
@@ -198,6 +198,11 @@ public class Form extends AbstractField<Object> implements Item.Editor,
return (FormState) super.getState();
}
+ @Override
+ protected FormState getState(boolean markAsDirty) {
+ return (FormState) super.getState(markAsDirty);
+ }
+
/* Documented in interface */
@Override
public void paintContent(PaintTarget target) throws PaintException {
@@ -775,7 +780,7 @@ public class Form extends AbstractField<Object> implements Item.Editor,
* @return the Layout of the form.
*/
public Layout getLayout() {
- return (Layout) getState().layout;
+ return (Layout) getState(false).layout;
}
/**
@@ -1214,7 +1219,7 @@ public class Form extends AbstractField<Object> implements Item.Editor,
* is used
*/
public Layout getFooter() {
- return (Layout) getState().footer;
+ return (Layout) getState(false).footer;
}
/**
diff --git a/server/src/com/vaadin/ui/Window.java b/server/src/com/vaadin/ui/Window.java
index 473393d728..35583c6052 100644
--- a/server/src/com/vaadin/ui/Window.java
+++ b/server/src/com/vaadin/ui/Window.java
@@ -1034,7 +1034,7 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier,
* @return array of previously set components
*/
public Component[] getAssistiveDescription() {
- Connector[] contentDescription = getState().contentDescription;
+ Connector[] contentDescription = getState(false).contentDescription;
if (contentDescription == null) {
return null;
}