summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2008-04-07 11:47:16 +0000
committerMarc Englund <marc.englund@itmill.com>2008-04-07 11:47:16 +0000
commit638fe9899be27b8f4f92dc4750f813c1210ecb1f (patch)
treef2a7ece02284a05879689ea4f70a8740c81e4c38 /src/com
parent1b441ca92bba15de8ecae5a45fa7f632cce824b6 (diff)
downloadvaadin-framework-638fe9899be27b8f4f92dc4750f813c1210ecb1f.tar.gz
vaadin-framework-638fe9899be27b8f4f92dc4750f813c1210ecb1f.zip
TT backwards compatibility fix: adds old (pre-multiapp) versionInfo to js.
Also fixed typo in ApplicationConfiguration. svn changeset:4135/svn branch:trunk
Diffstat (limited to 'src/com')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ApplicationConfiguration.java2
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java12
2 files changed, 12 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConfiguration.java b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConfiguration.java
index e36c3dceb6..7bdd9d176a 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConfiguration.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConfiguration.java
@@ -39,7 +39,7 @@ public class ApplicationConfiguration {
if($wnd.itmill.toolkitConfigurations && $wnd.itmill.toolkitConfigurations[id]) {
var jsobj = $wnd.itmill.toolkitConfigurations[id];
var uri = jsobj.appUri;
- if(uri[uri.lenght -1] != "/") {
+ if(uri[uri.length -1] != "/") {
uri = uri + "/";
}
this.@com.itmill.toolkit.terminal.gwt.client.ApplicationConfiguration::appUri = uri;
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
index 56fab0803c..792212ab61 100644
--- a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
+++ b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
@@ -753,8 +753,18 @@ public class ApplicationServlet extends HttpServlet {
page.write(application.getVersion());
page.write("\"}");
}
+ page.write("\n}}\n");
+ if (testingToolsActive) {
+ // TODO backwards compatibility; TT does not (yet) support multiple
+ // apps on one page
+ page.write(", versionInfo : {toolkitVersion:\"");
+ page.write(VERSION);
+ page.write("\",applicationVersion:\"");
+ page.write(application.getVersion());
+ page.write("\"}");
+ }
- page.write("\n}}};\n</script>\n");
+ page.write("};\n</script>\n");
boolean testingWindow = testingToolsActive
&& request.getParameter("TT") != null;