Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
chinnari k
Inter portlet communication
20. Dezember 2012 05:56
Antwort

chinnari k

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 19. Dezember 2012

Neue Beiträge

Hi,
Can any one please send me an example which will satisy the following requirements.??
Iam using liferay 6.1 with apache tomcat 7.0.
I have created two portlets on a same page. I displayed list of options on one portlet. when i click on any particular option the information about that particular option should be display on second portlet. This should happen with all the options. For that what i have to do, Please give me solution, It's urgent.............

Thanks.
David H Nebinger
RE: Inter portlet communication
20. Dezember 2012 06:27
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 6274

Eintrittsdatum: 1. September 2006

Neue Beiträge

There are already examples in doing standard portlet IPC. You can check the wiki. Liferay in Action is a great resource too.
chinnari k
RE: Inter portlet communication
4. Januar 2013 06:19
Antwort

chinnari k

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 19. Dezember 2012

Neue Beiträge

Hi David,
Thank you for your suggestion.

Is there any way to display a set of images on the right side when we click something on the left side that uses inter portlet communication using events. I am able to display text but i am not able to display images using the above concept. Can you please suggest me...


Thanks
Bart Simpson
RE: Inter portlet communication
4. Januar 2013 06:23
Antwort

Bart Simpson

Rang: Liferay Master

Nachrichten: 523

Eintrittsdatum: 29. August 2011

Neue Beiträge

You have to retrieve the image and form the url as present in the document library portlet, then it should be possible to display it. What is the problem you are facing? Any exceptions? Can you share the code?
chinnari k
RE: Inter portlet communication
4. Januar 2013 08:07
Antwort

chinnari k

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 19. Dezember 2012

Neue Beiträge

Thanks for the quick response.
I want to send a set of images as a payload from sender portlet to listener portlet. Is there any data type for specifying the images?
chinnari k
RE: Inter portlet communication
4. Januar 2013 08:14
Antwort

chinnari k

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 19. Dezember 2012

Neue Beiträge

I am using the below code for sending text from sender portlet to listener portlet.

public void sendEvent(ActionRequest actionRequest,
ActionResponse actionResponse) {
QName qname = new QName(
"http:your.private.namespace.com/yourEvent",
"message");
actionResponse.setEvent(qname,"Hello World");
return;
}

In the above code, instead of "Hello World" message, i want to send a set of images from sender portlet to listener portlet. How can I do that? Can you please help me...
Both my sender and listener portlets are extending Generic Portlet.

Thanks
chinnari k
RE: Inter portlet communication
6. Januar 2013 01:30
Antwort

chinnari k

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 19. Dezember 2012

Neue Beiträge

Hi Bart,
Can you please help me out in solving the issue above.

Thanks
Jay Trivedi
RE: Inter portlet communication
6. Januar 2013 09:06
Antwort

Jay Trivedi

Rang: Junior Member

Nachrichten: 96

Eintrittsdatum: 23. November 2012

Neue Beiträge

Hey Chinnari,

If your hello world IPC Portlet works fine than you can pass a particular text from your portlet- 1 to portlet-2 and based on that text comparision you can get the list of images on portlet-2. I hope this makes things little clear.Share code file to get it modified.

Regards Jay.
Bart Simpson
RE: Inter portlet communication
7. Januar 2013 03:52
Antwort

Bart Simpson

Rang: Liferay Master

Nachrichten: 523

Eintrittsdatum: 29. August 2011

Neue Beiträge

I want to send a set of images as a payload from sender portlet to listener portlet.

Is there any reason you want to send image as the payload. Image is just the resource, why just not send the link. How will it benefit to send the image itself. I am just trying to understand the requirement you have, so I can try to give you a better option