danieltellez wrote:
Hi all,

We're trying to install a portlet on Liferay... and we've achieved it.
But it has something strange in the code. With both JBoss Portal and Jahia we need to modify the getUID method (by extending an abstract NuxeoPortlet class) by getting contextId as an attribute of the request.

We thought that contextId was needed for something... but we don't care about it. Well, now, the request.getAttribute gives us a null value... and all is running ok.

Then, we need to know... what do we use "contextId" for ??

Thanks in advance.

Hi,

The getUID() method should return a unique identifier for the calling portlet instance, depending of the portal: Jahia puts a request attribute "org.portletapi.contextid" which is an unique identifier for the portlet instance.

This identifier is used to store / retrieve the global preferences shared by all the users of this instance, via the NuxeoPortlet#getGlobalPreferences(String uid) method. It means you can have 2 instances of the same portlet in your portal but with different preferences (2 search portlets with different registered nuxeo server).

Thomas
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to