]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged Fix for #3935 DateField does not update contents when locale is changed
authorArtur Signell <artur.signell@itmill.com>
Fri, 12 Mar 2010 15:18:13 +0000 (15:18 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 12 Mar 2010 15:18:13 +0000 (15:18 +0000)
svn changeset:11841/svn branch:6.2

src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java

index e71dd5c1400d377fdf1c102d6c5a6908292b1b46..cbb5f3d7fc85955e12eefa5649aaf082ce5cac2d 100644 (file)
@@ -82,8 +82,9 @@ public class VTextualDate extends VDateField implements Paintable, Field,
     @Override
     public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
         int origRes = currentResolution;
+        String oldLocale = currentLocale;
         super.updateFromUIDL(uidl, client);
-        if (origRes != currentResolution) {
+        if (origRes != currentResolution || oldLocale != currentLocale) {
             // force recreating format string
             formatStr = null;
         }