LiferayIPC
Provides inter portlet communication for portlets deployed to a Liferay server
REPLACED BY Vaadin IPC for Liferay
http://vaadin.com/addon/vaadin-ipc-for-liferay
The standard inter portlet communication (IPC) mechanism defined in the portlet 2.0 specifications requires the page to be reloaded when the communication takes page. This is not very nice, especially for Vaadin application.
Liferay provides a javascript API that allows portlets to communicate without the need of refreshing the page. This component uses that API to allow Vaadin portlets to communicate with each other without the need of refreshing the page or using a push add-on.
The add-on also allows Vaadin portlets to communicate with non-Vaadin portlets and Liferay gadgets, using the same API.
The data sent using this mechanism is limited to a String and is passed to the target portlet(s) on the client side. If you want to pass data on server side you can store the data somewhere where it is available to the target portlet and only pass a reference which allows the target portlet to lookup the real data.
Sample code
LiferayIPC liferayIPC_1 = new LiferayIPC(); liferayIPC_1.addListener("theEventId", new LiferayIPCEventListener() { public void eventReceived(LiferayIPCEvent event) { getWindow().showNotification("Got event "+event.getEventId()+" with data "+event.getData()); } });
LiferayIPC liferayIPC_1 = new LiferayIPC(); liferayIPC_1.sendEvent("theEventId", "theData");
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Initial version
- Released
- 2011-05-13
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.0+
- Browser
- Browser Independent
LiferayIPC - Vaadin Add-on Directory
Provides inter portlet communication for portlets deployed to a Liferay serverDiscussion Forum
Demo Source Code
Demo WAR
LiferayIPC version 0.8.1
Initial version