summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2010-01-13 10:40:14 +0000
committerMarc Englund <marc.englund@itmill.com>2010-01-13 10:40:14 +0000
commit2342d517d8d53a51ef47db82b3558d2b850b027e (patch)
tree4a26303dacaf0a7a592f0c6f72f6127f3985fb85
parent0ec3379ac00df225766aedb53072839eefd260f8 (diff)
downloadvaadin-framework-2342d517d8d53a51ef47db82b3558d2b850b027e.tar.gz
vaadin-framework-2342d517d8d53a51ef47db82b3558d2b850b027e.zip
Somewhat better debug message when customlayout is missing + javadoc. Fixes #3984
svn changeset:10705/svn branch:6.3
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java54
-rw-r--r--src/com/vaadin/ui/CustomLayout.java13
2 files changed, 35 insertions, 32 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
index 63991b8b5b..fc7f174a62 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractCommunicationManager.java
@@ -4,6 +4,32 @@
package com.vaadin.terminal.gwt.server;
+import com.vaadin.Application;
+import com.vaadin.Application.SystemMessages;
+import com.vaadin.external.org.apache.commons.fileupload.FileItemIterator;
+import com.vaadin.external.org.apache.commons.fileupload.FileItemStream;
+import com.vaadin.external.org.apache.commons.fileupload.FileUpload;
+import com.vaadin.external.org.apache.commons.fileupload.FileUploadException;
+import com.vaadin.external.org.apache.commons.fileupload.ProgressListener;
+import com.vaadin.terminal.ApplicationResource;
+import com.vaadin.terminal.DownloadStream;
+import com.vaadin.terminal.PaintException;
+import com.vaadin.terminal.PaintTarget;
+import com.vaadin.terminal.Paintable;
+import com.vaadin.terminal.URIHandler;
+import com.vaadin.terminal.UploadStream;
+import com.vaadin.terminal.VariableOwner;
+import com.vaadin.terminal.Paintable.RepaintRequestEvent;
+import com.vaadin.terminal.Terminal.ErrorEvent;
+import com.vaadin.terminal.Terminal.ErrorListener;
+import com.vaadin.terminal.gwt.client.ApplicationConnection;
+import com.vaadin.terminal.gwt.server.ComponentSizeValidator.InvalidLayout;
+import com.vaadin.ui.AbstractField;
+import com.vaadin.ui.Component;
+import com.vaadin.ui.Upload;
+import com.vaadin.ui.Window;
+import com.vaadin.ui.Upload.UploadException;
+
import java.io.BufferedWriter;
import java.io.CharArrayWriter;
import java.io.IOException;
@@ -39,32 +65,6 @@ import javax.portlet.PortletResponse;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
-import com.vaadin.Application;
-import com.vaadin.Application.SystemMessages;
-import com.vaadin.external.org.apache.commons.fileupload.FileItemIterator;
-import com.vaadin.external.org.apache.commons.fileupload.FileItemStream;
-import com.vaadin.external.org.apache.commons.fileupload.FileUpload;
-import com.vaadin.external.org.apache.commons.fileupload.FileUploadException;
-import com.vaadin.external.org.apache.commons.fileupload.ProgressListener;
-import com.vaadin.terminal.ApplicationResource;
-import com.vaadin.terminal.DownloadStream;
-import com.vaadin.terminal.PaintException;
-import com.vaadin.terminal.PaintTarget;
-import com.vaadin.terminal.Paintable;
-import com.vaadin.terminal.URIHandler;
-import com.vaadin.terminal.UploadStream;
-import com.vaadin.terminal.VariableOwner;
-import com.vaadin.terminal.Paintable.RepaintRequestEvent;
-import com.vaadin.terminal.Terminal.ErrorEvent;
-import com.vaadin.terminal.Terminal.ErrorListener;
-import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.server.ComponentSizeValidator.InvalidLayout;
-import com.vaadin.ui.AbstractField;
-import com.vaadin.ui.Component;
-import com.vaadin.ui.Upload;
-import com.vaadin.ui.Window;
-import com.vaadin.ui.Upload.UploadException;
-
/**
* This is a common base class for the server-side implementations of the
* communication system between the client code (compiled with GWT into
@@ -905,7 +905,7 @@ public abstract class AbstractCommunicationManager implements
+ "\"");
} else {
// FIXME: Handle exception
- System.err.println("CustomLayout not found");
+ System.err.println("CustomLayout not found: " + resource);
}
}
outWriter.print("}");
diff --git a/src/com/vaadin/ui/CustomLayout.java b/src/com/vaadin/ui/CustomLayout.java
index 0baa0dd468..cae427763c 100644
--- a/src/com/vaadin/ui/CustomLayout.java
+++ b/src/com/vaadin/ui/CustomLayout.java
@@ -4,16 +4,16 @@
package com.vaadin.ui;
+import com.vaadin.terminal.PaintException;
+import com.vaadin.terminal.PaintTarget;
+import com.vaadin.terminal.gwt.client.ui.VCustomLayout;
+
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
-import com.vaadin.terminal.PaintException;
-import com.vaadin.terminal.PaintTarget;
-import com.vaadin.terminal.gwt.client.ui.VCustomLayout;
-
/**
* <p>
* A container component with freely designed layout and style. The layout
@@ -90,7 +90,10 @@ public class CustomLayout extends AbstractLayout {
/**
* Constructor for custom layout with given template name. Template file is
- * fetched from "<theme>/layout/<templateName>".
+ * fetched from VAADIN/themes/themename/layouts/templatename.html - see
+ * {@link #setTemplateName(String)} for details.
+ *
+ * @see #setTemplateName(String)
*/
public CustomLayout(String template) {
templateName = template;