Foren

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

Muhammad Taha, geändert vor 8 Jahren.

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

Junior Member Beiträge: 63 Beitrittsdatum: 01.05.12 Neueste Beiträge
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, geändert vor 8 Jahren.

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

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 8 Jahren.

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

Junior Member Beiträge: 63 Beitrittsdatum: 01.05.12 Neueste Beiträge
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..