summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-03-06 20:09:06 +0200
committerVaadin Code Review <review@vaadin.com>2014-03-11 19:47:43 +0000
commitc4c17a18dcb013588518c1542fd8d3966b08cd40 (patch)
tree6ccafe06ec8d0bb9000f7a708e376592b6ef7091 /server
parent729b79a737fd2b3ed1c49ec66b3c823393bab017 (diff)
downloadvaadin-framework-c4c17a18dcb013588518c1542fd8d3966b08cd40.tar.gz
vaadin-framework-c4c17a18dcb013588518c1542fd8d3966b08cd40.zip
Do not ever set title to null (#13430)
* If title is null, leave it as-is (assume somebody else is setting it) * If title is non-null, set it as before Change-Id: I72699efa089df64b58448ceef59ba31995f330bf
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/server/Page.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/com/vaadin/server/Page.java b/server/src/com/vaadin/server/Page.java
index 5c8b1aeb42..19b84381d5 100644
--- a/server/src/com/vaadin/server/Page.java
+++ b/server/src/com/vaadin/server/Page.java
@@ -1133,9 +1133,12 @@ public class Page implements Serializable {
/**
* Sets the page title. The page title is displayed by the browser e.g. as
* the title of the browser window or as the title of the tab.
+ * <p>
+ * If the title is set to null, it will not left as-is. Set to empty string
+ * to clear the title.
*
* @param title
- * the new page title to set
+ * the page title to set
*/
public void setTitle(String title) {
getState(true).title = title;