aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2010-04-09 12:09:43 +0000
committerHenri Sara <henri.sara@itmill.com>2010-04-09 12:09:43 +0000
commitfe43fd65b1c77806e7190426cc7c27836e32432a (patch)
tree0eb7c2e5521da52b744131f1b1e0cf2b4e49bacc /src/com/vaadin
parent7749ec6928f53ed4f7814e2e3518e87693eb919a (diff)
downloadvaadin-framework-fe43fd65b1c77806e7190426cc7c27836e32432a.tar.gz
vaadin-framework-fe43fd65b1c77806e7190426cc7c27836e32432a.zip
#4153 use the noscript tag also when running as a portlet
svn changeset:12440/svn branch:6.3
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
index 9951f1af8e..74a4b9ba5e 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java
@@ -1204,6 +1204,15 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet
String classNames, String divStyle) throws IOException {
writer.write("<div id=\"" + id + "\" class=\""
+ classNames + "\" " + divStyle + "></div>\n");
+ writer.write("<noscript>" + getNoScriptMessage() + "</noscript>");
+ }
+
+ /**
+ * Returns a message printed for browsers without scripting support or if
+ * browsers scripting support is disabled.
+ */
+ protected String getNoScriptMessage() {
+ return "You have to enable javascript in your browser to use an application built with Vaadin.";
}
/**