Foros de discusión

"Liferay.fire" what is it and how to use it?

thumbnail
Prakash Khanchandani, modificado hace 9 años.

"Liferay.fire" what is it and how to use it?

Expert Mensajes: 329 Fecha de incorporación: 10/02/11 Mensajes recientes
Can anybody give me a short tutorial or point me in the right direction where I can understand how
Liferay.fire
actually works and in which scenarios can I use it.

I have used it for IPC but other than that I can't seem to understand how to liferay uses it say for example in document library for move, check-in, check-out etc.

Thanks for the help.
thumbnail
David H Nebinger, modificado hace 9 años.

RE: "Liferay.fire" what is it and how to use it?

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Liferay has a legacy, browser side IPC system using Liferay.fire() and Liferay.on(). You register a listener for an event using "on" and then you can trigger using "fire". It only has current page scope so you cannot go to another page or anything like that. Typically you'll do this for a lightweight IPC on a page, but then each portlet must be able to respond to the event either by making a change or invoking ajax back to it's server side to get some data.

There are plenty of examples in the OOTB portlets, so have at it emoticon
thumbnail
Meera Prince, modificado hace 9 años.

RE: "Liferay.fire" what is it and how to use it?

Liferay Legend Mensajes: 1111 Fecha de incorporación: 8/02/11 Mensajes recientes
Hi
Have a look into following link it give you an idea

http://www.liferaysavvy.com/2014/01/liferay-client-side-inter-portlet.html



Regards,
Meera Prince