We were not getting the proper member in the parameters array. Instead
of 'j', we were actually calling the 'i' variable which is the length of
the <ENTRY> elements in the defaultPortlets.xml file.
I'm adding the <parameter> element for the CocoonPortlet which is very
cool, BTW.
If this doesn't make sense, please let me know...
josh
Index: PortletFactory.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/portal/factory/PortletFactory.java,v
retrieving revision 1.12
diff -c -r1.12 PortletFactory.java
*** PortletFactory.java 2000/02/16 17:21:34 1.12
--- PortletFactory.java 2000/02/17 00:19:20
***************
*** 157,163 ****
Hashtable params = new Hashtable();
for(int j = 0; j < parameters.length; ++j) {
! params.put( parameters[i].getName(),
parameters[i].getValue() );
}
v.addElement( getPortlet( entries[i].getClassname(),
entries[i].getUrl(), params, rundata, entries[i].getMetainfo() ) );
--- 157,163 ----
Hashtable params = new Hashtable();
for(int j = 0; j < parameters.length; ++j) {
! params.put( parameters[j].getName(),
parameters[j].getValue() );
}
v.addElement( getPortlet( entries[i].getClassname(),
entries[i].getUrl(), params, rundata, entries[i].getMetainfo() ) );
--
--------------------------------------------------------------
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]