留言板

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

Muhammad Taha,修改在8 年前。

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

Junior Member 帖子: 63 加入日期: 12-5-1 最近的帖子
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,修改在8 年前。

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

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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,修改在8 年前。

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

Junior Member 帖子: 63 加入日期: 12-5-1 最近的帖子
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..