aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/com/vaadin/ui/CustomLayout.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/CustomLayout.java b/server/src/main/java/com/vaadin/ui/CustomLayout.java
index 7764846065..4fd331c462 100644
--- a/server/src/main/java/com/vaadin/ui/CustomLayout.java
+++ b/server/src/main/java/com/vaadin/ui/CustomLayout.java
@@ -292,6 +292,9 @@ public class CustomLayout extends AbstractLayout implements LegacyComponent {
/**
* Set the contents of the template used to draw the custom layout.
*
+ * Note: setTemplateContents can be applied only before CustomLayout
+ * instance has been attached.
+ *
* @param templateContents
*/
public void setTemplateContents(String templateContents) {