David -

I'd like to take advantage of the solution you outlined here.  If you have
the code close to checkin and time to do it, I encourage you to check it in.
If not, I can take a shot at it.

Lets extend PortletConfig to hold:

Portlet id
Page (profile) id

and make sure to set these both when constructing the portlet config in the
factory.

Then we can extend AbstractPortlet to make one that forms a cache on these
PortletConfig fields, AbstractInstancePortlet, and move VelocityPortlet to
extend this.

Thanks!  Let me know if you want me to do any of these steps.

- Glenn

> -----Original Message-----
> From: David Sean Taylor [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 10:42 AM
> To: 'Jetspeed Developers List'
> Subject: RE: A brief report on Jetspeed Portlet Caching
> 
> 
> 
> > -----Original Message-----
> > From: Glenn Golden [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 6:03 AM
> > To: 'Jetspeed Developers List'
> > Subject: RE: A brief report on Jetspeed Portlet Caching
> > 
> > 
> > David -
> > 
> > I'm unsure what Java does when calling a static member of a
> > class if the class hierarchy defines two or more 
> > implementations of that member, each at different levels - 
> > does it take the most specific?
> 
> Yes, since it was instantiated as the most-specific class.
> 
> > 
> > If you duplicate your page to another page, and leave the
> > portlet id's the same in each page, and have them both 
> > updating at the same time, it may fail to distinguish them.
> > 
> > If a page is duplicated within jetspeed, for example, when a
> > new user is created and the "turbine" page is copied, are the 
> > id's re-generated?  I think that portlet Id is not defined to 
> > be system wide unique, just unique within the page.
> > 
> 
> If you ensure that your portlet ids are unique system wide, 
> this isn't a
> problem.
> If you can't ensure that, then don't use the portlet-id for the key,
> instead use the IdGeneratorService
> 
> > We may want to add the portal page id as well as the portlet 
> > id to make the full instance id in the cache.
> > 
> 
> Yes another solution, get the page id via RunData.getProfile 
> 
> Let me know what you all want to do with this. I believe the choices
> are:
> 
> - id
> - page-id + id
> - id-generator 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:jetspeed-dev-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to