Liferay Inter-portlet communication(client side)
来源:互联网 发布:最靠谱的二手交易软件 编辑:程序博客网 时间:2024/06/05 07:46
It's very easy to do that. Liferay provides script to do that.
This is the syntax:
Liferay.fire(eventName, data) Liferay.on(eventName, function, [scope])
In my case, one portlet just sends an event out. The other portlet only needs to refresh itself.
Liferay.fire('iFramePortletReload', 'iFramePortletReload');
Liferay.on('iFramePortletReload', function(event, data) {
window.location.reload();
//Liferay.Portlet.refresh('#p_p_id<portlet:namespace />');
});
window.location.reload(); // When I use this script, actually it'll refresh the current liferay page not only the portlet which receives the event.
Liferay.Portlet.refresh('#p_p_id<portlet:namespace />'); // this statement will only refresh current portlet which receive the event.
- Liferay Inter-portlet communication(client side)
- inter portlet communication library
- Websphere portal 6.1 的portlet inter-communication
- inter-portlet communication ,portlet之间的交互通讯,Transient State Management
- X Window 程式设计入门--第六章 Inter-Client Communication
- X Window 程式设计入门--第六章 Inter-Client Communication
- Inter-process Communication:Pipes
- Inter-Process Communication IPC
- Inter-process Communication (IPC)
- Inter process communication
- Inter-process communication
- Inter-Process Communication(IPC)
- Inter-App Communication
- Inter-process communication
- Liferay Struts Portlet 1
- Liferay Struts Portlet 2
- Liferay Struts Portlet 3
- Liferay-Portlet -------CI
- Python bad interpreter: No such file or directory
- 解决刷了Gargoyle固件后某些LED灯不亮的问题
- ASP.NET @Page指令属性
- linux下启动相关oracle服务与监听的命令
- CustomValidator的使用方法
- Liferay Inter-portlet communication(client side)
- html js
- 祝福你,李琛~
- 如何解决IE内存泄漏
- 二叉树中的前趋和后继
- IE浏览器内存释放注释事项
- html js2
- javascript正则全局匹配g慎用test方法
- 23字真经