掲示板

Multi portlets on a page

12年前 に Tom Vleminckx によって更新されました。

Multi portlets on a page

Junior Member 投稿: 39 参加年月日: 11/06/27 最新の投稿
Hello,

I have two portlets in Liferay6.0.6 with primefaces3 and portletfaces-bridge2.0.1 performing their ajax call fine. If I add them both on the same page and click on one, the other one is broken??

I receive a ViewExpiredException on the second portlet ...

Anyone a suggestion ?
12年前 に PortletFaces Community Member によって更新されました。

RE: Multi portlets on a page

Regular Member 投稿: 199 参加年月日: 12/04/03 最新の投稿
Hi tom,

You are using primefaces component library means it will load all the resources (css and js) when the <h:head/> part is loaded.

If you have mutiple portlets in one page some of the resources is being loaded multiple times may be this is the problem problem the resources wont work for the second portlet the first portlet in the page only works fine. Try reordering portlets and referesh now the one present first in the page works fine.

So the solution that is provided is remove all <h:head/> tags and provide manual resource includes which is a very bad idea. some solution from PortletFaces Bridge is shortly expected as it will load all resources from <h:head/> or Primefaces has to take care.

If you find any solution please let me know.

Regards
Phani
12年前 に Tom Vleminckx によって更新されました。

RE: Multi portlets on a page

Junior Member 投稿: 39 参加年月日: 11/06/27 最新の投稿
Yes,

But it seems to be fixed in primefaces 3RC1

So no more worries emoticon
12年前 に PortletFaces Community Member によって更新されました。

RE: Multi portlets on a page

Regular Member 投稿: 199 参加年月日: 12/04/03 最新の投稿
Oh ok

Thanks for the update i have been working on M3 and M4 from the past 3 months i haven't checked with primefaces website

Thanks
Phani
12年前 に PortletFaces Community Member によって更新されました。

RE: Multi portlets on a page

Regular Member 投稿: 199 参加年月日: 12/04/03 最新の投稿
Tom Vleminckx:
Yes,

But it seems to be fixed in primefaces 3RC1

So no more worries emoticon


I'm curious as to why you say this. My issues with multiple PrimeFaces portlets seem to persist even with PrimeFaces 3.1. I have issues with p:lightBox not working, an AJAX event in portlet A triggering p:ajaxStatus in portlet B, and AJAX not working in general. This thread on the PF forums seems to indicate the issue is with the bridge and not PF.
12年前 に Tom Vleminckx によって更新されました。

RE: Multi portlets on a page

Junior Member 投稿: 39 参加年月日: 11/06/27 最新の投稿
It's indeed not fixed...

I hope they will fix this soon because it's really a blocker.
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: Multi portlets on a page

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Please refer to FACES-1216 for more information.
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: Multi portlets on a page

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
I just committed a Liferay vendor-specific fix for FACES-1216. Please give it a try as soon as you can. You can download 3.1.0-ga1-SNAPSHOT artifacts from the snapshot repository.