Hi Elliot
Sorry that my first reply was lost. See below.
-----Elliot Metsger <[EMAIL PROTECTED]> wrote: -----
>To: [email protected]
>From: Elliot Metsger <[EMAIL PROTECTED]>
>Date: 09/04/2006 06:13AM
>Subject: Re: Portlet modes and buttons in the 1.1 portal driver
>
>Hey Craig,
>
>Thanks for the feedback.
>
>I've had to scrap part of my original idea though :(
>
>>> 1. Exposes the supported modes of the portlet by modifying
>the
>>> PortletWindowConfig class, adding getModes(String mimeType)
>and
>>> setModes(Map) methods.
>
>This part stays the same.
>
GOOD!
>To: [email protected]
>From: Elliot Metsger <[EMAIL PROTECTED]>
>Date: 09/04/2006 06:13AM
>Subject: Re: Portlet modes and buttons in the 1.1 portal driver
>
>Hey Craig,
>
>Thanks for the feedback.
>
>I've had to scrap part of my original idea though :(
>
>>> 1. Exposes the supported modes of the portlet by modifying
>the
>>> PortletWindowConfig class, adding getModes(String mimeType)
>and
>>> setModes(Map) methods.
>
>This part stays the same.
>
GOOD!
>
>>> 2. Modifies the PortletRegistryServiceImpl to populate the
>registry on
>>> initialization.
>>> 3. Modifed the PortletRegistryServiceImpl to add the supported
>modes to
>>> the PortletWindowConfig (which occurs during initialization)
>
>The PortletRegistryService can't populate the registry on
>initialization, because the servlet contexts of other portlet web
>applications are not available yet (Tomcat hasn't finished starting
>up
>all of the webapps). So I don't think I can use the Portlet Registry
>
>Service to accomplish this.
>
>So, I'm going to try to do this in a servlet filter which decorates
>the
>PortletWindowConfig with the necessary information.
>
>I have a messy prototype now - I'm now back where I was a few hours
>ago
>with the Portlet Registry with my filter. I want to get this done
>for
>the beta2 release.
>>> 2. Modifies the PortletRegistryServiceImpl to populate the
>registry on
>>> initialization.
>>> 3. Modifed the PortletRegistryServiceImpl to add the supported
>modes to
>>> the PortletWindowConfig (which occurs during initialization)
>
>The PortletRegistryService can't populate the registry on
>initialization, because the servlet contexts of other portlet web
>applications are not available yet (Tomcat hasn't finished starting
>up
>all of the webapps). So I don't think I can use the Portlet Registry
>
>Service to accomplish this.
>
>So, I'm going to try to do this in a servlet filter which decorates
>the
>PortletWindowConfig with the necessary information.
>
>I have a messy prototype now - I'm now back where I was a few hours
>ago
>with the Portlet Registry with my filter. I want to get this done
>for
>the beta2 release.
This would be great to have this done for beta 2.
I think it would be better to populate a 'supported modes' object and associated it with the portlet window at init() of the Driver Servlet since that is the normal way of doing this kind of thing in Pluto rather than a using a servlet filter. That's my 2 cents (for what it's worth).
/Craig
