Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
venkat g
How to share session attributes between a portlet and a theme
11 de Outubro de 2010 00:27
Resposta

venkat g

Ranking: New Member

Mensagens: 4

Data de entrada: 11 de Outubro de 2010

Mensagens recentes

How to share session attributes between a portlet and a theme.
venkat g
RE: How to share session attributes between a portlet and a theme
12 de Outubro de 2010 05:33
Resposta

venkat g

Ranking: New Member

Mensagens: 4

Data de entrada: 11 de Outubro de 2010

Mensagens recentes

Looking for help on the above topic.
Arun Kumar S
RE: How to share session attributes between a portlet and a theme
12 de Outubro de 2010 05:46
Resposta

Arun Kumar S

Ranking: Regular Member

Mensagens: 182

Data de entrada: 23 de Junho de 2008

Mensagens recentes

venkat g:
How to share session attributes between a portlet and a theme.



Hi Venkat,

I hope the below link helps you

Access Objects from Velocity



1. $renderRequest.getPortletSession()

Use the above code in vm to access Portlet Session in theme.

HTH,
Arun.
venkat g
RE: How to share session attributes between a portlet and a theme
13 de Outubro de 2010 00:44
Resposta

venkat g

Ranking: New Member

Mensagens: 4

Data de entrada: 11 de Outubro de 2010

Mensagens recentes

Hi Arun,

I am getting nothing when i am using $renderRequest.getSession() and $request.getSession()
in portal_normal.vm

I have set a session attribute in view.jsp in calender portlet, and able to get in dictionary portlet, but unable to get in the theme.

request.getSession().setAttribute("LIFERAY_SHARED_ValueFromPortlet1","venkat");
venkat g
RE: How to share session attributes between a portlet and a theme
13 de Outubro de 2010 04:27
Resposta

venkat g

Ranking: New Member

Mensagens: 4

Data de entrada: 11 de Outubro de 2010

Mensagens recentes

Hi Arun,

Now i am able to get session attribute which i set in a portlet from vm using

$request.getSession().getAttribute(key);

but I am unable to get the same attribute in jsp which i included in theme.

Any body please suggest.
Brian Scott Schupbach
RE: How to share session attributes between a portlet and a theme
10 de Junho de 2013 11:33
Resposta

Brian Scott Schupbach

Ranking: Expert

Mensagens: 329

Data de entrada: 23 de Outubro de 2008

Mensagens recentes

Did you ever figure this out?

I am wanting to do the same thing.

Thanks,

Brian