portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5688] - Clicking "Close" on portlet means portlet is lost for good
Date Mon, 07 Jan 2002 15:36:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5688>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5688

Clicking "Close" on portlet means portlet is lost for good





------- Additional Comments From raphael@apache.org  2002-01-07 07:36 -------
Chris, I fear that only implementing a UniqueId in Portlet won't solve the issue
and you would also need one in PSML/persistence API.

I have started to tackle this issue by rewriting the PSML access interface
(checkout the org.apache.jetspeed.om.profile.Document, Entry, etc...).
This API does not introduce a new Id() field but relies on Name being unique
for a portlet entry wwhile the name of the Portlet inherited from the Registry 
is accessed through getParent() rather that getName().

This would be exposed in Portlet through a getPortletConfig().getParent() while 
Portlet.getName() is used to get a unique, persistable handle on the Portlet object.

This is more or less equivalent to introducing a uniqueId, if you do add a new
uniqueId I'd advise against modifying the Portlet interface but rather make it
available through the PortletConfig : this'll let fix the Portlet lifecycle
issue where there's only one Portlet object servicing many requested with
different configs...

ALso, I don't think the Registry needs a unique id since it only stores Portlet
description entries which are uniquely defined by name.

Also iuf you want to resolve the close issue without tackling the unique Id one,
instead of using the portlet name in the close reference, you can use a
combination of:
- its container name
- the portlet position within this container.
This is easy to retrieve and easy to use for identifying the portlet to close.

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message