Forums de discussion

Share attributes between WSRP portlets

Rolf Lehnert, modifié il y a 9 années.

Share attributes between WSRP portlets

New Member Publications: 5 Date d'inscription: 30/08/13 Publications récentes
Hi all,

I try to share attributes between 2 WSRP (Version 2) portlets.
Therefore I have coded "Method 1 - Sharing attributes between portlets" from this documentation: Method 1 - Sharing attributes between portlets
If the both portlets are not remote, it works fine. One portlet stores the attributes in session and the other portlet can reads the attributes back.

But if the both portlets are remote as WSRP consumer, it doesn't work.
Is this method not possible for WSRP portlets?

In the master portlet I set the attribute:
portletSession.setAttribute("NAME", value, PortletSession.APPLICATION_SCOPE);

And in the client portlet I get the attribute:
portletSession.getAttribute("NAME",PortletSession.APPLICATION_SCOPE);


Kind regards
Rolf