]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #1806: Unexpected behavior with i-modified-class
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sat, 14 Jun 2008 15:49:50 +0000 (15:49 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sat, 14 Jun 2008 15:49:50 +0000 (15:49 +0000)
svn changeset:4881/svn branch:trunk

src/com/itmill/toolkit/ui/TextField.java

index dd26a38cc2e363edcb8853d1cdf77170cf3bce2c..34223c0853e1b51daf9b68afba3340ebd193015b 100644 (file)
@@ -229,7 +229,13 @@ public class TextField extends AbstractField {
             }
             if (newValue != oldValue
                     && (newValue == null || !newValue.equals(oldValue))) {
+                boolean wasModified = isModified();
                 setValue(newValue, true);
+
+                // If the modified status changes, repaint is needed after all
+                if (wasModified != isModified()) {
+                    requestRepaint();
+                }
             }
         }