Fórum

Multi portlets on a page

Tom Vleminckx, modificado 12 Anos atrás.

Multi portlets on a page

Junior Member Postagens: 39 Data de Entrada: 27/06/11 Postagens Recentes
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 ?
PortletFaces Community Member, modificado 12 Anos atrás.

RE: Multi portlets on a page

Regular Member Postagens: 199 Data de Entrada: 03/04/12 Postagens Recentes
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
Tom Vleminckx, modificado 12 Anos atrás.

RE: Multi portlets on a page

Junior Member Postagens: 39 Data de Entrada: 27/06/11 Postagens Recentes
Yes,

But it seems to be fixed in primefaces 3RC1

So no more worries emoticon
PortletFaces Community Member, modificado 12 Anos atrás.

RE: Multi portlets on a page

Regular Member Postagens: 199 Data de Entrada: 03/04/12 Postagens Recentes
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
PortletFaces Community Member, modificado 12 Anos atrás.

RE: Multi portlets on a page

Regular Member Postagens: 199 Data de Entrada: 03/04/12 Postagens Recentes
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.
Tom Vleminckx, modificado 12 Anos atrás.

RE: Multi portlets on a page

Junior Member Postagens: 39 Data de Entrada: 27/06/11 Postagens Recentes
It's indeed not fixed...

I hope they will fix this soon because it's really a blocker.
thumbnail
Neil Griffin, modificado 11 Anos atrás.

RE: Multi portlets on a page

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
Please refer to FACES-1216 for more information.
thumbnail
Neil Griffin, modificado 11 Anos atrás.

RE: Multi portlets on a page

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
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.