A render url does you not help either. How will you ever be able to clean up your database?
So I think you are anyway bound to some spec extensions as you would also get notifications on when a window is destroyed and when one is created right?
Stefan
Derek Richardson wrote:
Yeah, though about the namespace. Extracting the <ID> from the session keys seems like a better identifier, it's guaranteed to be unique, according to the spec. But perhaps not constant? Or what about using a render url with no parameters? I guess that's not guaranteed unique, either.
I think this is an almost FATAL flaw in the portlet 1.0 spec. I know the spec writers considered this issue; why was it decided the way it was?
Thanks
-----Original Message-----
From: Stefan Hepper [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 5:53 PM
To: [email protected]
Subject: Re: ID for a Portlet Window
Derek Richardson wrote:
Is there an accessible unique ID for a given portlet window?I'd like to
You can use RenderResponse.getNamespace that gives you an id scoped to the window, however this id may change and thus cannot be used as key for db entries. The portlet spec does currently not provide the access to the window id, as you would also need lifecycle listeners when a window is created or destroyed.store portlet-window-specific but non-user-specific information in a database and need a primary key.
Thanks,
Derek
Stefan
