Raphael Luta made some significant contributions to JetSpeed with the
addition of Cocoon support (thanks!).
Specifically Cocoon can now be a Portlet (CocoonPortlet) and Cocoon can
also be a PortletController via XMLPortletController.
I have also added support for
- parameters within portlet initialization.
- IE: <parameter>
<name>test</name>
<value>asdf</value>
</parameter>
- this was needed by Raphael's Portlets and is necessary in general.
- Also Turbine RunData is passed to a Portlet via
this.getConfig().getRunData() so you
can now do per user output customization or anything else with the data
within RunData.
NOTES (Raphael's notes):
XMLPortletController:
-----------------------------------------
This controller fetches portlets content and aggregates them in a
composite
XML document.
It then applies a XSL transformation of the result and wraps the
result in an ElementContainer so that it can be included in a Turbine
Screen.
Limitation: For this controller to work all the content of the portlets
must
be well-formed XML (when using ECS this must be either XML or XHTML).
XMLPortlet:
-----------------------------------------
Portlet to output an XML well-formed document without any rendering.
Strips all PIs and XML declaration before outputting content to allow
for inclusion in a wider XML document.
CocoonPortlet
-----------------------------------------
Portlet to output an XML well-formed document transformed by cocoon.
- fetch an URL
- if there's a stylesheet parameter in the portlet config, strip all
PIs from
the orignal doc and transform the doc based on the given stylesheet
- strip from the returned string the <?xml?> or <!DOCTYPE!> declaration
to avoid declaration conflict
Again thanks Raphael!
--
Kevin A Burton
Senior Software Engineer
Kendara Inc
http://www.kendara.com
Mobile: 408-910-6145
Linux - The revolution will NOT be televised
--
--------------------------------------------------------------
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]