diff options
author | Artur Signell <artur.signell@itmill.com> | 2010-12-08 15:51:24 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2010-12-08 15:51:24 +0000 |
commit | c26d635b675c7244e85ecaa1021e7740d8447a2e (patch) | |
tree | fe6325dbc3f25758445fb5a3fb878f9cc084c6a0 | |
parent | 7aaa73bcee5c95e6818b967379ae15068662bb66 (diff) | |
download | vaadin-framework-c26d635b675c7244e85ecaa1021e7740d8447a2e.tar.gz vaadin-framework-c26d635b675c7244e85ecaa1021e7740d8447a2e.zip |
#6030 - TextField TextChangeEvent with prompt as value
svn changeset:16416/svn branch:6.5
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VTextField.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTextField.java b/src/com/vaadin/terminal/gwt/client/ui/VTextField.java index 7eaed83e46..334f2617a5 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTextField.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTextField.java @@ -129,6 +129,10 @@ public class VTextField extends TextBoxBase implements Paintable, Field, private boolean communicateTextValueToServer() { String text = getText(); + if (prompting) { + // Input prompt visible, text is actually "" + text = ""; + } if (!text.equals(getLastCommunicatedString())) { lastTextChangeString = text; client.updateVariable(id, VAR_CUR_TEXT, text, true); |