You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Derek Richardson <De...@appiancorp.com> on 2005/03/23 17:45:35 UTC

ID for a Portlet Window

Is there an accessible unique ID for a given portlet window? I'd like to
store portlet-window-specific but non-user-specific information in a
database and need a primary key.

Thanks,

Derek

Re: ID for a Portlet Window

Posted by Stefan Hepper <st...@apache.org>.
Derek Richardson wrote:

>Is there an accessible unique ID for a given portlet window? I'd like to
>store portlet-window-specific but non-user-specific information in a
>database and need a primary key.
>
>Thanks,
>
>Derek
>
>
>  
>
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.

Stefan