Author: thomas.heute(a)jboss.com
Date: 2009-01-19 17:21:27 -0500 (Mon, 19 Jan 2009)
New Revision: 12562
Modified:
tags/JBoss_Portal_2_7_1/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java
Log:
Message instead of failing
Modified:
tags/JBoss_Portal_2_7_1/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java
===================================================================
---
tags/JBoss_Portal_2_7_1/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java 2009-01-19
21:49:17 UTC (rev 12561)
+++
tags/JBoss_Portal_2_7_1/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java 2009-01-19
22:21:27 UTC (rev 12562)
@@ -39,6 +39,8 @@
import javax.portlet.PortletSecurityException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
+import javax.portlet.UnavailableException;
+
import javax.xml.namespace.QName;
import java.io.IOException;
import java.io.PrintWriter;
@@ -97,6 +99,15 @@
}
}
+
+ protected void doView(RenderRequest req, RenderResponse resp) throws PortletException,
PortletSecurityException, IOException
+ {
+ resp.setContentType("text/html");
+ PrintWriter writer = resp.getWriter();
+ writer.write("This portlet is not made to be viewed");
+ writer.close();
+ }
+
protected void doEditContent(RenderRequest req, RenderResponse resp) throws
PortletException, PortletSecurityException, IOException
{
getContent(req, resp, false);
Show replies by date