]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #4021
authorJohn Alhroos <john.ahlroos@itmill.com>
Wed, 10 Feb 2010 10:44:54 +0000 (10:44 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Wed, 10 Feb 2010 10:44:54 +0000 (10:44 +0000)
svn changeset:11243/svn branch:6.2

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

index 7d69e5682aca4cf646a351568259e07aa389cdc2..ffd09dab2cbc452f618ccceb8998f1f113749be2 100644 (file)
@@ -140,6 +140,7 @@ public class VEmbedded extends HTML implements Paintable {
                     parameters.put("movie", getSrc(uidl, client));
                 }
 
+                // Add the parameters to the Object
                 for (String name : parameters.keySet()) {
                     html += "<param name=\"" + escapeAttribute(name)
                             + "\" value=\""
@@ -147,9 +148,15 @@ public class VEmbedded extends HTML implements Paintable {
                 }
 
                 html += "<embed src=\"" + getSrc(uidl, client) + "\" width=\""
-                        + width + "\" height=\"" + height + "\"></embed>";
+                        + width + "\" height=\"" + height + "\" ";
 
-                html += "</object>";
+                // Add the parameters to the Embed
+                for (String name : parameters.keySet()) {
+                    html += escapeAttribute(name) + "=\""
+                    + escapeAttribute(parameters.get(name)) + "\" ";
+                }
+
+                html += "></embed></object>";
                 setHTML(html);
             } else if (mime.equals("image/svg+xml")) {
                 String data;