]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't use hard coded version number in default window title
authorLeif Åstrand <leif@vaadin.com>
Wed, 23 Nov 2011 09:17:41 +0000 (11:17 +0200)
committerLeif Åstrand <leif@vaadin.com>
Wed, 23 Nov 2011 09:17:41 +0000 (11:17 +0200)
src/com/vaadin/terminal/gwt/server/AjaxPageHandler.java

index 6975bcbb0ab6e81087992f7189137d36c280467d..75ca37f6ebf8ca61c8da3ee54feb21736cb508ae 100644 (file)
@@ -38,8 +38,8 @@ public abstract class AjaxPageHandler implements RequestHandler {
         final BufferedWriter page = new BufferedWriter(new OutputStreamWriter(
                 response.getOutputStream(), "UTF-8"));
 
-        String title = ((root.getCaption() == null) ? "Vaadin 6" : root
-                .getCaption());
+        String title = ((root.getCaption() == null) ? "Vaadin "
+                + AbstractApplicationServlet.VERSION_MAJOR : root.getCaption());
 
         /* Fetch relative url to application */
         // don't use server and port in uri. It may cause problems with some