Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

LiferayIPC sharing session attributes problem

Tomasz Słowikowski
10 years ago Mar 22, 2012 1:08pm
Marko Grönroos
10 years ago Mar 22, 2012 7:21pm
Tomasz Słowikowski
10 years ago Mar 23, 2012 6:18am

To Everybody who has the same problem. I sloved it.
I checked PortalSession javadoc, and what I found is:
getAttributeNames() - returns session attribute names but only from PORTLET_SCOPE, that's why my APPLICATION_SCOPE attribute wasn't visible.
And the second think: to get attribute value which is in APPLICATION_SCOPE, we have to write it explicityly by using method:
session.getAttribute(key, PortletSession.APPLICATION_SCOPE)
and it works.

So the example from book of vaadin (secion13.10) is not correct.

Yinka Oluwasanmi
9 years ago Aug 29, 2012 6:58pm