]> source.dussan.org Git - vaadin-framework.git/commitdiff
Code missing from Embedded alternative text merge
authorArtur Signell <artur@vaadin.com>
Fri, 23 Mar 2012 08:08:45 +0000 (10:08 +0200)
committerArtur Signell <artur@vaadin.com>
Fri, 23 Mar 2012 08:08:45 +0000 (10:08 +0200)
src/com/vaadin/terminal/gwt/client/ui/EmbeddedConnector.java

index b724e8fe9ed277ce9a45dd7e7a48f73a2eda43e4..d83210ee1b0cbf7d6818abf41fc6286770eb89e7 100644 (file)
@@ -74,6 +74,11 @@ public class EmbeddedConnector extends AbstractComponentConnector {
                 DOM.setElementProperty(el, "src",
                         getWidget().getSrc(uidl, client));
 
+                if (uidl.hasAttribute(ALTERNATE_TEXT)) {
+                    el.setPropertyString(ALTERNATE_TEXT,
+                            uidl.getStringAttribute(ALTERNATE_TEXT));
+                }
+
                 if (created) {
                     // insert in dom late
                     getWidget().getElement().appendChild(el);
@@ -149,7 +154,9 @@ public class EmbeddedConnector extends AbstractComponentConnector {
                             uidl.getStringAttribute("standby"));
                 }
                 getWidget().getElement().appendChild(obj);
-
+                if (uidl.hasAttribute(ALTERNATE_TEXT)) {
+                    obj.setInnerText(uidl.getStringAttribute(ALTERNATE_TEXT));
+                }
             } else {
                 VConsole.log("Unknown Embedded mimetype '" + mime + "'");
             }