With the removal of Portlet.init(PortletConfig pc) some of the portlets ( RSS,
admin portlets ) were broken. Below is a patch for the ones I found broken.
I replaced init(PortletConfig) with init() and called getPortletConfig() where
needed.
Index: AbstractPortlet.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/AbstractPortlet.java,v
retrieving revision 1.13
diff -u -r1.13 AbstractPortlet.java
--- AbstractPortlet.java 2000/04/20 23:06:10 1.13
+++ AbstractPortlet.java 2000/04/24 14:39:25
@@ -236,6 +236,4 @@
@version $Id: AbstractPortlet.java,v 1.13 2000/04/20 23:06:10 burton Exp
$
*/
public void init() throws PortletException {}
-
-
}
Index: RSSPortlet.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/RSSPortlet.java,v
retrieving revision 1.24
diff -u -r1.24 RSSPortlet.java
--- RSSPortlet.java 2000/04/20 22:41:34 1.24
+++ RSSPortlet.java 2000/04/24 14:39:25
@@ -107,7 +107,7 @@
@author <A HREF="mailto:[EMAIL PROTECTED]">Kevin A. Burton</A>
@version $Id: RSSPortlet.java,v 1.24 2000/04/20 22:41:34 burton Exp $
*/
- public void init(PortletConfig pc) throws PortletException {
+ public void init() throws PortletException {
@@ -115,11 +115,11 @@
try {
- rsscontent = RSSParser.getContent( pc.getURL() );
+ rsscontent = RSSParser.getContent( getPortletConfig().getURL()
);
} catch (Exception e) {
- Log.error( "Could not parse the following URL: " + pc.getURL(),
e );
+ Log.error( "Could not parse the following URL: " +
getPortletConfig().getURL(), e );
return;
}
Index: admin/DaemonAdminPortlet.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/DaemonAdminPortlet.java,v
retrieving revision 1.7
diff -u -r1.7 DaemonAdminPortlet.java
--- admin/DaemonAdminPortlet.java 2000/04/13 07:14:49 1.7
+++ admin/DaemonAdminPortlet.java 2000/04/24 14:39:25
@@ -267,7 +267,7 @@
@author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton</a>
@version $Id: DaemonAdminPortlet.java,v 1.7 2000/04/13 07:14:49 burton
Exp $
*/
- public void init(PortletConfig config) throws PortletException {
+ public void init() throws PortletException {
this.setTitle("Daemons");
Index: admin/JavaRuntimePortlet.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/JavaRuntimePortlet.java,v
retrieving revision 1.7
diff -u -r1.7 JavaRuntimePortlet.java
--- admin/JavaRuntimePortlet.java 2000/04/13 07:14:49 1.7
+++ admin/JavaRuntimePortlet.java 2000/04/24 14:39:25
@@ -130,7 +130,7 @@
@author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton</a>
@version $Id: JavaRuntimePortlet.java,v 1.7 2000/04/13 07:14:49 burton
Exp $
*/
- public void init(PortletConfig config) throws PortletException {
+ public void init() throws PortletException {
this.setTitle("Java Runtime");
this.setDescription("Information about your Java Runtime");
Index: admin/JetspeedContentAdmin.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/JetspeedContentAdmin.java,v
retrieving revision 1.4
diff -u -r1.4 JetspeedContentAdmin.java
--- admin/JetspeedContentAdmin.java 2000/04/13 07:14:49 1.4
+++ admin/JetspeedContentAdmin.java 2000/04/24 14:39:25
@@ -152,7 +152,7 @@
@author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton</a>
@version $Id: JetspeedContentAdmin.java,v 1.4 2000/04/13 07:14:49 burton
Exp $
*/
- public void init(PortletConfig config) throws PortletException {
+ public void init() throws PortletException {
this.setTitle("Jetspeed Content");
this.setDescription("Publish Jetspeed Content.");
}
Index: admin/JetspeedPropertiesPortlet.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/JetspeedPropertiesPortlet.java,v
retrieving revision 1.10
diff -u -r1.10 JetspeedPropertiesPortlet.java
--- admin/JetspeedPropertiesPortlet.java 2000/04/13 07:14:50 1.10
+++ admin/JetspeedPropertiesPortlet.java 2000/04/24 14:39:25
@@ -90,7 +90,7 @@
@author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton</a>
@version $Id: JetspeedPropertiesPortlet.java,v 1.10 2000/04/13 07:14:50
burton Exp $
*/
- public void init(PortletConfig config) throws PortletException {
+ public void init() throws PortletException {
this.setTitle("Properties");
this.setDescription("Jetspeed Properties");
Index: admin/MemoryStorePortlet.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/MemoryStorePortlet.java,v
retrieving revision 1.6
diff -u -r1.6 MemoryStorePortlet.java
--- admin/MemoryStorePortlet.java 2000/04/13 07:14:50 1.6
+++ admin/MemoryStorePortlet.java 2000/04/24 14:39:25
@@ -169,7 +169,7 @@
@author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton</a>
@version $Id: MemoryStorePortlet.java,v 1.6 2000/04/13 07:14:50 burton
Exp $
*/
- public void init(PortletConfig config) throws PortletException {
+ public void init() throws PortletException {
this.setTitle("Memory Store");
this.setDescription("Memory Store");
Index: admin/SelectPortlet.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/SelectPortlet.java,v
retrieving revision 1.9
diff -u -r1.9 SelectPortlet.java
--- admin/SelectPortlet.java 2000/04/13 07:14:50 1.9
+++ admin/SelectPortlet.java 2000/04/24 14:39:25
@@ -88,13 +88,13 @@
@author <a href="mailto:[EMAIL PROTECTED]">Kevin A. Burton</a>
@version $Id: SelectPortlet.java,v 1.9 2000/04/13 07:14:50 burton Exp $
*/
- public void init(PortletConfig config) throws PortletException {
+ public void init() throws PortletException {
this.setTitle("Control Panel");
this.setDescription("Jetspeed Control Panel");
- RunData rundata = config.getRunData();
+ RunData rundata = getPortletConfig().getRunData();
ElementContainer root = new ElementContainer();
Table table = new Table().setWidth("100%");
Jeffrey D. Brekke
mailto:[EMAIL PROTECTED]
http://sites.netscape.net/ekkerbj/homepage
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]