Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
hamza jemai
Portlet communication
28 gennaio 2013 0.10
Risposta

hamza jemai

Punteggio: Junior Member

Messaggi: 40

Data di Iscrizione: 4 dicembre 2012

Messaggi recenti

Hi everybody,
I need your help, i'm using 2 Primefaces Portlet and I want them to communicate, for exemple i need to pass a selected project from a dataTable in the first portlet to the second, so an idea for this ??
Thanks
Juhi Kumari
RE: Portlet communication
28 gennaio 2013 1.20
Risposta

Juhi Kumari

Punteggio: Expert

Messaggi: 347

Data di Iscrizione: 12 dicembre 2011

Messaggi recenti

Hi,

Check this links.
http://www.liferay.com/community/wiki/-/wiki/Main/Portlet+to+Portlet+Communication
http://www.liferay.com/web/james.min/blog/-/blogs/inter-portlet-communication-ipc-in-liferay

It may help you.

Regards
Juhi
Neil Griffin
RE: Portlet communication
29 gennaio 2013 13.08
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2062

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

There are two Portlet 2.0 standard ways to perform IPC with portlets:
1) Events IPC
2) Public Render Parameters (PRP) IPC

Both of these techniques are supported by Liferay Faces Bridge, using the JSR 329 Portlet Bridge standard mechanisms.

We have three demo Web Application Archives (WARs) available that might be of help to you. The first two are for Events IPC -- each one contains a single portlet, and so both portlets should be put on the same portal page:

1) jsf2-ipc-events-customers-portlet
2) jsf2-ipc-events-bookings-portlet

The third WAR is for PRP IPC, which has two portlets inside the same WAR:
3) jsf2-ipc-pub-render-params-portlet
Neil Griffin
RE: Portlet communication
29 gennaio 2013 13.09
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2062

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

I would recommend that you take a look at these demos, and then replace the h: tags with PrimeFaces p: tags. Keep in mind however, that Ajax must be disabled in any PrimeFaces component that invokes IPC, since the Portlet 2.0 mechanisms require a full page postback to occur.
hamza jemai
RE: Portlet communication
30 gennaio 2013 2.48
Risposta

hamza jemai

Punteggio: Junior Member

Messaggi: 40

Data di Iscrizione: 4 dicembre 2012

Messaggi recenti

Hey, thanks a lot, your answer really helped me out, and I feel a lot better now with those tuto emoticon Its really helpful Thanks
hamza jemai
RE: Portlet communication
5 febbraio 2013 5.42
Risposta

hamza jemai

Punteggio: Junior Member

Messaggi: 40

Data di Iscrizione: 4 dicembre 2012

Messaggi recenti

Hi Mr Neil,
I have a problem with " EventPayloadWrapper ", i don't understand why i don't find this "import com.liferay.faces.bridge.event.EventPayloadWrapper;" in any dependencie, i'am using liferay-faces-bridge-impl version 3.1.0-ga1 in my pom.xml. Also when i cheked your exemple jsf2-ipc-events-customers-portlet i have the same problem.
Thanks
Neil Griffin
RE: Portlet communication
5 febbraio 2013 7.08
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2062

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

Thanks for asking -- let me see if I can clarify: The EventPayloadWrapper class is a feature that was added in FACES-1465 in order to support Events IPC when portlets are on separate portal pages. The feature will appear in Liferay Faces 3.1.2-ga3, which, at the time of this writing, hasn't been released yet.

It might be that you are looking at the master branch at GitHub. If so, then might be helpful for you to refer to the 3.1.1-ga2 "tag" of the IPC demo portlets:

https://github.com/liferay/liferay-faces/tree/3.1.1-ga2/demos/bridge/jsf2-ipc-events-customers-portlet

https://github.com/liferay/liferay-faces/tree/3.1.1-ga2/demos/bridge/jsf2-ipc-events-bookings-portlet

Kind Regards,

Neil
hamza jemai
RE: Portlet communication
5 febbraio 2013 7.27
Risposta

hamza jemai

Punteggio: Junior Member

Messaggi: 40

Data di Iscrizione: 4 dicembre 2012

Messaggi recenti

Thanks Neil I will Try this and i keep you informate with results