Fórum

Event lost when not signed in

Praneeth Chinta, modificado 13 Anos atrás.

Event lost when not signed in

New Member Postagens: 4 Data de Entrada: 07/10/10 Postagens Recentes
Scenario here is that...

There is a link to one of the privte page P2 of a community in a portlet A.This portlet is on public page P1.
This portlet publishes an event when user clicks on the link.There is a portlet B on P1 which listens to the event published by A and show it on Portlet B.

User without logging in goes to the public page and clicks on the link to the private page P2 in Portlet A.It takes the user to sign in portlet page. User logs in and he is taken back to the Private page P2 as expected but the event didn't reach the portlet B at all.

If the user logs in first and click on the link then it works fine.The event reaches B and it is shown correctly.

What could be the issue here? Why is the event getting lost?

I am using the code like this
String url = request.getParameter("url");
			QName qName = new QName("http://liferay.com/events", "ipc.url");
			response.setEvent(qName, url);
			response.sendRedirect("/group/guest/iframepage");