diff options
author | Juuso Valli <juuso@vaadin.com> | 2014-09-11 16:34:03 +0300 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2014-09-15 14:23:54 +0300 |
commit | 4a60f1a712787cfdadeddef399d177b25806017e (patch) | |
tree | a96434f9689e12c44d629cd33f7aa7168c5e489c /server/src/com/vaadin/ui/DateField.java | |
parent | 85181e8f2905e3f1174538108fbc3e941946fd56 (diff) | |
download | vaadin-framework-4a60f1a712787cfdadeddef399d177b25806017e.tar.gz vaadin-framework-4a60f1a712787cfdadeddef399d177b25806017e.zip |
Make Vaadin component handling proxy-friendly (#14639)
Comparisons with the ==-operator between a proxy and it's underlying
instance fail, so we should use a custom equals method instead.
Change-Id: Iaa86ae830fecbedfb1f55636e25f5affebf5aba3
Diffstat (limited to 'server/src/com/vaadin/ui/DateField.java')
-rw-r--r-- | server/src/com/vaadin/ui/DateField.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/DateField.java b/server/src/com/vaadin/ui/DateField.java index ba1178548f..e88d767bc9 100644 --- a/server/src/com/vaadin/ui/DateField.java +++ b/server/src/com/vaadin/ui/DateField.java @@ -723,7 +723,7 @@ public class DateField extends AbstractField<Date> implements Collection<?> visibleItemProperties = f.getItemPropertyIds(); for (Object fieldId : visibleItemProperties) { Field<?> field = f.getField(fieldId); - if (field == this) { + if (equals(field)) { /* * this datefield is logically in a form. Do the same * thing as form does in its value change listener that |