]> source.dussan.org Git - vaadin-framework.git/commitdiff
fix to #57
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 12 Jan 2007 13:39:36 +0000 (13:39 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Fri, 12 Jan 2007 13:39:36 +0000 (13:39 +0000)
svn changeset:246/svn branch:toolkit

src/com/itmill/toolkit/terminal/web/ApplicationServlet.java

index 83e503519b3010bba7f6c993e32dba54ee3822c1..d9f3b831df43450971f7f640bfe8b3910da517ed 100644 (file)
@@ -868,17 +868,19 @@ public class ApplicationServlet extends HttpServlet implements
 
                                                + "client/\",document.getElementById('ajax-wait'));\n");
 
-               for (int k = themes.size() - 1; k >= 0; k--) {
-                       t = (Theme) themes.get(k);
+               // TODO Only current theme is registered to the client
+               //for (int k = themes.size() - 1; k >= 0; k--) {
+               //      t = (Theme) themes.get(k);
+               t = theme;
                        String themeObjName = "itmill.themes." + 
                                t.getName().substring(0, 1)
                                        .toUpperCase()
                                        + t.getName().substring(1);
                        page.write(" (new " + themeObjName + "(\""
                                        + resourcePath
-                                       + ((Theme) themes.get(k)).getName()
+                                       + t.getName()
                                        + "/\")).registerTo(client);\n");
-               }
+               //}
 
                if (isDebugMode(unhandledParameters))
                        page.write("client.debugEnabled =true;\n");