"Schwarz, Marcus" wrote:
>
> Additionally we have added for each portlet some special tags inside of the
> registry, which are handling the related URLs:
>
> <functions>
> <function name="maximize">
> <url>http://finance.yahoo.com</url>
> </function>
> </functions>
>
> here one can specify which URL should be called if the button is pushed. The
> current way to allways call the same URL for each portlet (OK, it's a
> dynamic
> one, but still...) is surely not enough. In the above approach you can
> dynamically
> e.g. call a configuration URL of the portlet. Another possibility is surely
> to put these information into the "parameters" area of a portlet-entry.
>
That's a great idea.
A PortletControl could definitely query all the available functions
on a Portlet and add them to the control bar.
Default functions could be registered in the PortletControl entry.
Sample registry entries:
<portlet-entry ...>
<functions>
<function name="maximize">
<url>http://wherever/</url>
</function>
<!-- override the default behavior to remove the close option -->
<function name="close"/>
<function name="edit">
<url>my_custom_edit/</url>
</function>
</functions>
</portlet-entry>
<portle-control ..>
<functions>
<function name="maximize">
<icon>std_maximize_icon</icon>
<url>std_maximize_dynamic_URL</url>
</function>
<function name="close">
<icon>std_close_icon</icon>
<url>std_close_URL</url>
</function>
<function name="edit">
<icon>std_edit_icon</icon>
<url>std_edit_URL</url>
</function>
</functions>
</portlet-control>
Did I understand correctly ?
--
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://marc.theaimsgroup.com/?l=jetspeed>
Problems?: [EMAIL PROTECTED]