Fórum

Issue with Liferay.on/fire when the target portlet is refreshed

Muhammad Taha, modificado 8 Anos atrás.

Issue with Liferay.on/fire when the target portlet is refreshed

Junior Member Postagens: 63 Data de Entrada: 01/05/12 Postagens Recentes
Hi all,

I'm doing a liferay fire from a portlet-A, in liferay.on(Portlet-emoticon I'm doing portlet refresh (Portlet-emoticon..
but 2nd time when I do same liferay.fire it triggers liferay.on 2 times, 3rd time triggers 3 times and so on..

its happening only when I do portlet refresh in liferay.on.

Can you anyone here tell me why its happening.. and what can be done to fix this.

Thank you
Mahmmad
thumbnail
David H Nebinger, modificado 8 Anos atrás.

RE: Issue with Liferay.on/fire when the target portlet is refreshed

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Every time you invoke Liferay.on(), you're asking to be included when the the fire() method is called. If by refresh you mean you're calling on() over and over, then it's your own code that is causing the problem.
Muhammad Taha, modificado 8 Anos atrás.

RE: Issue with Liferay.on/fire when the target portlet is refreshed

Junior Member Postagens: 63 Data de Entrada: 01/05/12 Postagens Recentes
David, its not happening immediately after doing a portlet B refresh . only during next time Liferay.fire, as if I'm firing all one time again..