Nick Tackes wrote:
>
> <snip>
> *****************
> portletregistry fragment
> *****************
> <entry type="ref" parent="Cocoon" name="UserReportList"
> application="true">
> <url>/content/dynamic/xsp/Category2.xml</url>
> <parameter name="stylesheet"
> value="/content/dynamic/xsp/Category4.xsl"/>
> <metainfo>
> <title>User Report List</title>
> <description>User accessable list of
> reports.</description>
> </metainfo>
> </entry>
> *****************
> I am having an interesting go of getting familiar with the psml controllers,
> controls and portlets, but I modified an existing sample psml to include my
> cocoon portlet. Basically, I want a 2 column page with the left being a
> custom portlet that I have written and the right being a cocoon portlet. My
> custom portlet (KPIPane) works fine, however, I get no output from my cocoon
> portlet.
>
Don't put application="true" in your entry, because these entries are treated in
a special way. Without the application attribute the entry seems OK.
> ***********************
> default.psml
> ***********************
> <?xml version="1.0" encoding="iso-8859-1"?>
> <portlets user="default">
> <controller
> name="org.apache.jetspeed.portal.controllers.FlowPortletController"/>
You probably don't want a FlowLayout. FlowLayout output its children one
after another without any additionnal layout info. For building, multi-column
layouts the best way is to use the RowColumnPortletController.
This construct will specify a row, which the size of the first column forced to
25% of screen, nothing specified for the other cells:
<portlets>
<controller name="org.apache.jetspeed.portal.controllers.RowColumnPortletController">
<parameter name="sizes" value="25%"/>
<parameter name="mode" value="row"/>
</controller>
</portlets>
If I now put portlets as children of this set using a RowColumnPortletController in
column (default) mode, I can have a n column layout with a various number of elements
in each column.
The complete page skeleton would be :
<portlets>
<controller
name="org.apache.jetspeed.portal.controllers.RowColumnPortletController">
<parameter name="sizes" value="25%"/>
<parameter name="mode" value="row"/>
</controller>
<!-- first column -->
<portlets>
<controller
name="org.apache.jetspeed.portal.controllers.RowColumnPortletController"/>
<!-- begin column 1 content -->
<!-- end column 1 content -->
</portlets>
<!-- second column -->
<portlets>
<controller
name="org.apache.jetspeed.portal.controllers.RowColumnPortletController"/>
<!-- begin column 2 content -->
<!-- end column 2 content -->
</portlets>
<!-- I can add a third column here -->
</portlets>
--
Rapha�l Luta - [EMAIL PROTECTED]
--
--------------------------------------------------------------
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]