]> source.dussan.org Git - vaadin-framework.git/commitdiff
#3191
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 14 Aug 2009 09:02:21 +0000 (09:02 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 14 Aug 2009 09:02:21 +0000 (09:02 +0000)
svn changeset:8482/svn branch:6.1

src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java

index a6b035f9757a657066eebed25fa54db778dacf1a..9f579cf81c3bdc4737dd34de5be645af354c187b 100644 (file)
@@ -1383,7 +1383,7 @@ public abstract class AbstractApplicationServlet extends HttpServlet {
         writeAjaxPageHtmlMainDiv(page, appId, classNames, divStyle);
 
         if (!fragment) {
-            writeAjaxPageHtmlBodyEnd(page);
+            page.write("</body>\n</html>\n");
         }
 
         page.close();
@@ -1427,6 +1427,7 @@ public abstract class AbstractApplicationServlet extends HttpServlet {
             throws IOException {
         page.write("<div id=\"" + appId + "\" class=\"" + classNames + "\" "
                 + (divStyle != null ? divStyle : "") + "></div>\n");
+        page.write("<noscript>" + getNoScriptMessage() + "</noscript>");
     }
 
     /**
@@ -1567,23 +1568,6 @@ public abstract class AbstractApplicationServlet extends HttpServlet {
         return widgetset;
     }
 
-    /**
-     * Method to write the end of the html kickstart page.
-     * <p>
-     * This method is responsible for closing body and html tags.
-     * <p>
-     * Override this method if you want to add some custom html to the end of
-     * the page.
-     * 
-     * @param page
-     * @throws IOException
-     */
-    protected void writeAjaxPageHtmlBodyEnd(final BufferedWriter page)
-            throws IOException {
-        page.write("<noscript>" + getNoScriptMessage() + "</noscript>");
-        page.write("</body>\n</html>\n");
-    }
-
     /**
      * 
      * Method to open the body tag of the html kickstart page.