]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed changing error message on existing component with error
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 11 Sep 2007 12:18:01 +0000 (12:18 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 11 Sep 2007 12:18:01 +0000 (12:18 +0000)
svn changeset:2277/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/Caption.java

index 2a036ce9a51232fac0429380b3b5764f054b2381..f40228f9212f887dc97b13ff1531cd9ff38ebc46 100644 (file)
@@ -38,8 +38,8 @@ public class Caption extends HTML {
                                DOM.setElementProperty(errorIndicatorElement, "className", "i-errorindicator");
                                DOM.insertChild(getElement(), errorIndicatorElement, 0);
                        }
-                       
-                       errorMessage = new ErrorMessage();
+                       if(errorMessage == null)
+                               errorMessage = new ErrorMessage();
                        errorMessage.updateFromUIDL(errorUidl);
                        
                } else if( errorIndicatorElement != null) {