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
Jose Camallonga
How to redirect from a Render Filter
2 de Junho de 2010 00:29
Resposta

Jose Camallonga

Ranking: New Member

Mensagens: 2

Data de entrada: 2 de Junho de 2010

Mensagens recentes

Hi everybody,

I am doing a filter with a render and an action to check if a user is logged in.

When it's calling and action I can redirect him to the home page if it's not logged in with the method actionResponse.sendRedirect(...) but when it's calling a render I don't know how to do it.

Any ideas? emoticon


Thanks!


Jose
Pilar Hidalgo
RE: How to redirect from a Render Filter
11 de Outubro de 2012 05:28
Resposta

Pilar Hidalgo

Ranking: New Member

Mensagens: 14

Data de entrada: 10 de Abril de 2012

Mensagens recentes

Hi, did you solve it?

I have the same problem. I have two portlets, and I passed parameters from portletA to portletB but, when I want to redirect to portletB to see results I dont know how... because the render in the portletA dont have a redirect method
.¿Anyone help me?
Mika Koivisto
RE: How to redirect from a Render Filter
11 de Outubro de 2012 16:33
Resposta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1513

Data de entrada: 7 de Agosto de 2006

Mensagens recentes

You can't send redirect from render phase. At the time your portlet is rendered there might already be content committed to the output stream by other portlets that's why the spec doesn't allow it. When action phase is execute it only targets it to one portlet and that's why you can do redirect from there.