diff options
author | Artur Signell <artur@vaadin.com> | 2013-05-11 20:35:22 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-05-17 10:15:33 +0000 |
commit | 0c8edf1ff0502070d92dc6d8ef5af304d7570934 (patch) | |
tree | 8f159f5fcaaf85d74da3212b52bb96cd859c36c7 /server/src/com/vaadin | |
parent | 5a33d7df70bff3339501458991628d175ba83738 (diff) | |
download | vaadin-framework-0c8edf1ff0502070d92dc6d8ef5af304d7570934.tar.gz vaadin-framework-0c8edf1ff0502070d92dc6d8ef5af304d7570934.zip |
Avoid marking AbstractField dirty in primitive getters (#11201)
Change-Id: Ie289c15d5c56d3b602d87174f022b6197f0fedf0
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractField.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/AbstractField.java b/server/src/com/vaadin/ui/AbstractField.java index 422e0a1796..623dc5dbc3 100644 --- a/server/src/com/vaadin/ui/AbstractField.java +++ b/server/src/com/vaadin/ui/AbstractField.java @@ -325,7 +325,7 @@ public abstract class AbstractField<T> extends AbstractComponent implements */ @Override public boolean isModified() { - return getState().modified; + return getState(false).modified; } private void setModified(boolean modified) { @@ -1270,7 +1270,7 @@ public abstract class AbstractField<T> extends AbstractComponent implements */ @Override public int getTabIndex() { - return getState().tabIndex; + return getState(false).tabIndex; } /* @@ -1384,7 +1384,7 @@ public abstract class AbstractField<T> extends AbstractComponent implements */ @Override public boolean isRequired() { - return getState().required; + return getState(false).required; } /** @@ -1639,6 +1639,11 @@ public abstract class AbstractField<T> extends AbstractComponent implements } @Override + protected AbstractFieldState getState(boolean markAsDirty) { + return (AbstractFieldState) super.getState(markAsDirty); + } + + @Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); |