aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/com/vaadin/ui/AbstractComponent.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/AbstractComponent.java b/server/src/com/vaadin/ui/AbstractComponent.java
index 8349dcfa25..11e24a306e 100644
--- a/server/src/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/com/vaadin/ui/AbstractComponent.java
@@ -930,6 +930,14 @@ public abstract class AbstractComponent extends AbstractClientConnector
for (String attribute : getDefaultAttributes()) {
DesignAttributeHandler.readAttribute(this, attribute, attr, def);
}
+ // handle immediate
+ if (attr.hasKey("immediate")) {
+ String str = attr.get("immediate");
+ boolean immediate = "".equals(str) ? true : Boolean.valueOf(str);
+ setImmediate(immediate);
+ } else {
+ explicitImmediateValue = null;
+ }
// handle width and height
readSize(attr, def);
// handle component error
@@ -1162,7 +1170,8 @@ public abstract class AbstractComponent extends AbstractClientConnector
private static final String[] customAttributes = new String[] { "width",
"height", "debug-id", "error", "width-auto", "height-auto",
- "width-full", "height-full", "size-auto", "size-full", "responsive" };
+ "width-full", "height-full", "size-auto", "size-full",
+ "responsive", "immediate" };
/*
* (non-Javadoc)
@@ -1182,6 +1191,10 @@ public abstract class AbstractComponent extends AbstractClientConnector
for (String attribute : getDefaultAttributes()) {
DesignAttributeHandler.writeAttribute(this, attribute, attr, def);
}
+ // handle immediate
+ if (explicitImmediateValue != null) {
+ design.attr("immediate", explicitImmediateValue.toString());
+ }
// handle size
writeSize(attr, def);
// handle component error