aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/TextField.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/TextField.java')
-rw-r--r--server/src/com/vaadin/ui/TextField.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/TextField.java b/server/src/com/vaadin/ui/TextField.java
index cd919ded9c..563810c76a 100644
--- a/server/src/com/vaadin/ui/TextField.java
+++ b/server/src/com/vaadin/ui/TextField.java
@@ -129,8 +129,8 @@ public class TextField extends AbstractTextField {
@Override
public void writeDesign(Element design, DesignContext designContext) {
super.writeDesign(design, designContext);
- AbstractTextField def = designContext.getDefaultInstance(this
- .getClass());
+ AbstractTextField def = (AbstractTextField) designContext
+ .getDefaultInstance(this);
Attributes attr = design.attributes();
DesignAttributeHandler.writeAttribute("value", attr, getValue(),
def.getValue(), String.class);