taylor 02/04/04 10:50:00
Modified: webapp/WEB-INF/conf demo-portlets.xreg portlets.xreg
psml-mapping.xml
webapp/WEB-INF/psml/test testcase.psml
Log:
* new AggregatePortlet added to portlets.xreg base registry
* new sample AggregateTest portlet demonstrating how to use AggregatePortlet
make sure to use the parameter 'path' to specify the psml resource:
<parameter name="path" value="group/apache/page/news"/>
Aggregated sub-portlets should probably have their window actions disabled until we
can sort this out
* added <reference> element support to PSML for external portlet references
(reference another psml file)
<reference id='393' name='myref' path='group/apache'/>
this feature is almost but not quite completed.
Revision Changes Path
1.10 +8 -0 jakarta-jetspeed/webapp/WEB-INF/conf/demo-portlets.xreg
Index: demo-portlets.xreg
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/demo-portlets.xreg,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- demo-portlets.xreg 29 Mar 2002 01:08:58 -0000 1.9
+++ demo-portlets.xreg 4 Apr 2002 18:49:59 -0000 1.10
@@ -172,4 +172,12 @@
hidden="false"/>
<media-type ref="html"/>
</portlet-entry>
+ <portlet-entry name="AggregateTest" type = "ref" parent="AggregatePortlet">
+ <meta-info>
+ <title>Portlet Aggregation Test</title>
+ <description>Portlet Aggregation test</description>
+ </meta-info>
+ <parameter name="path" value="group/apache/page/news"/>
+ <media-type ref="html"/>
+ </portlet-entry>
</registry>
1.19 +3 -0 jakarta-jetspeed/webapp/WEB-INF/conf/portlets.xreg
Index: portlets.xreg
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/portlets.xreg,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- portlets.xreg 29 Mar 2002 01:08:58 -0000 1.18
+++ portlets.xreg 4 Apr 2002 18:49:59 -0000 1.19
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<registry>
+ <portlet-entry name="AggregatePortlet" hidden="false" type="abstract"
application="false">
+ <classname>org.apache.jetspeed.portal.portlets.AggregatePortlet</classname>
+ </portlet-entry>
<portlet-entry name="XSL" hidden="false" type="abstract" application="false">
<classname>org.apache.jetspeed.portal.portlets.XSLPortlet</classname>
<category>xml</category>
1.3 +42 -0 jakarta-jetspeed/webapp/WEB-INF/conf/psml-mapping.xml
Index: psml-mapping.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/psml-mapping.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- psml-mapping.xml 25 Mar 2002 21:44:00 -0000 1.2
+++ psml-mapping.xml 4 Apr 2002 18:49:59 -0000 1.3
@@ -58,6 +58,12 @@
collection="vector">
<bind-xml name="portlets"/>
</field>
+
+ <field name="references"
+ type="org.apache.jetspeed.om.profile.psml.PsmlReference"
+ collection="vector">
+ <bind-xml name="reference"/>
+ </field>
</class>
@@ -200,5 +206,41 @@
</field>
</class>
+
+ <class name="org.apache.jetspeed.om.profile.psml.PsmlReference">
+ <map-to xml="reference"/>
+
+ <field name="id" type="java.lang.String">
+ <bind-xml name="id" node="attribute"/>
+ </field>
+
+ <field name="name" type="java.lang.String">
+ <bind-xml name="name" node="attribute"/>
+ </field>
+
+ <field name="path" type="java.lang.String">
+ <bind-xml name="path" node="attribute"/>
+ </field>
+
+ <field name="skin"
+ type="org.apache.jetspeed.om.profile.psml.PsmlSkin">
+ <bind-xml name="skin"/>
+ </field>
+
+ <field name="layout"
+ type="org.apache.jetspeed.om.profile.psml.PsmlLayout">
+ <bind-xml name="layout"/>
+ </field>
+
+ <field name="metaInfo"
+ type="org.apache.jetspeed.om.profile.psml.PsmlMetaInfo">
+ <bind-xml name="metainfo"/>
+ </field>
+
+ <field name="security"
+ type="org.apache.jetspeed.om.profile.psml.PsmlSecurity">
+ <bind-xml name="security"/>
+ </field>
+ </class>
</mapping>
1.3 +2 -0 jakarta-jetspeed/webapp/WEB-INF/psml/test/testcase.psml
Index: testcase.psml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/psml/test/testcase.psml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- testcase.psml 25 Mar 2002 21:43:14 -0000 1.2
+++ testcase.psml 4 Apr 2002 18:50:00 -0000 1.3
@@ -71,6 +71,8 @@
</layout>
</entry>
+ <reference id='300' name='ReferenceTest' path='group/apache/page/news'/>
+
</portlets>
</portlets>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>