summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java13
-rw-r--r--src/com/vaadin/terminal/gwt/server/CommunicationManager.java2
2 files changed, 13 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
index 96c0440b57..bdf81c7ccc 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
@@ -153,6 +153,8 @@ public abstract class AbstractApplicationServlet extends HttpServlet {
private static final String ERROR_NO_WINDOW_FOUND = "Application did not give any window, did you remember to setMainWindow()?";
+ private static final String DEFAULT_THEME = "reindeer";
+
private String resourcePath = null;
/**
@@ -746,13 +748,22 @@ public abstract class AbstractApplicationServlet extends HttpServlet {
}
if (themeName == null) {
- themeName = "default";
+ themeName = getDefaultTheme();
}
return themeName;
}
/**
+ * Returns the default theme. Must never return null.
+ *
+ * @return
+ */
+ String getDefaultTheme() {
+ return DEFAULT_THEME;
+ }
+
+ /**
* Calls URI handlers for the request. If an URI handler returns a
* DownloadStream the stream is passed to the client for downloading.
*
diff --git a/src/com/vaadin/terminal/gwt/server/CommunicationManager.java b/src/com/vaadin/terminal/gwt/server/CommunicationManager.java
index 1e11814bf7..0a69778e13 100644
--- a/src/com/vaadin/terminal/gwt/server/CommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/CommunicationManager.java
@@ -533,7 +533,7 @@ public class CommunicationManager implements Paintable.RepaintRequestListener,
themeName = request.getParameter("theme");
}
if (themeName == null) {
- themeName = "default";
+ themeName = applicationServlet.getDefaultTheme();
}
// TODO We should only precache the layouts that are not