Liferay 6.0.6 中强制从其他 portlet 渲染 portlet
有什么方法可以强制在 Liferay 中渲染端口?
我正在使用 Liferay 6.0.6,我想在会话变量中设置一个值,并强制其他端口让渲染,以便能够在读取该变量时更新第二个 portlet 的片段。
在 portlet 开发中,我使用 JSF 2.0 (Mojarra) 和 PrimeFaces
以防万一这是不可能的。还有其他建议来实现它吗?两个端口如何进行通信以更新其中一个端口的片段?
提前致谢。
Is there any way I can force the render of a port let in Liferay?
I'm using Liferay 6.0.6 and I want to set a value into a session variable and force other port let to render to be able to update fragment of this second portlet as it reads this variable.
In the portlet development I am using JSF 2.0 (Mojarra) and PrimeFaces
In case this is impossible. Any other suggestion to achieve it? How can two port lets communicate to update a fragment of one of them?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在 PrimeFaces 中进行 Google Ajax Push 操作,您会找到一些资源。 Ajax Push 也可以在 portlet 上下文中使用。我们一直在 ICEfaces 中使用 Ajax Push,但是 似乎 PrimeFaces 支持相同的。然而,我确实遇到了这个问题,但我没有了解它是否仍然与您目前使用的版本相关。
You could do a Google for Ajax Push in PrimeFaces, and you will find some resources. Ajax Push can also be used in a portlet context. We've been using Ajax Push in ICEfaces, but it seems that PrimeFaces supports the same. I did however came across this issue, but I don't know if it's still relevant for the version you're using at the moment.