summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/PasswordField.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/PasswordField.java')
-rw-r--r--server/src/com/vaadin/ui/PasswordField.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/src/com/vaadin/ui/PasswordField.java b/server/src/com/vaadin/ui/PasswordField.java
index 5f27eb59c9..974a1c2c10 100644
--- a/server/src/com/vaadin/ui/PasswordField.java
+++ b/server/src/com/vaadin/ui/PasswordField.java
@@ -91,12 +91,11 @@ public class PasswordField extends AbstractTextField {
@Override
public void readDesign(Element design, DesignContext designContext) {
super.readDesign(design, designContext);
- AbstractTextField def = designContext.getDefaultInstance(this
- .getClass());
Attributes attr = design.attributes();
- String value = DesignAttributeHandler.readAttribute("value", attr,
- def.getValue(), String.class);
- setValue(value);
+ if (attr.hasKey("value")) {
+ setValue(DesignAttributeHandler.readAttribute("value", attr,
+ String.class));
+ }
}
/*