diff options
Diffstat (limited to 'server/src/com')
-rw-r--r-- | server/src/com/vaadin/ui/AbstractComponent.java | 15 |
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 |