I need help and it's really confusing. I've tried to follow all example on the web about IPC - pass Parameter between portlet using event.
Here's my code if I only want to pass my attribute
using event:
QName qName = new QName("http://liferay.com/events", "ipc.send");
response.setEvent(qName, pitchType);
and then in my getter Event Portlet my code
@ProcessEvent(qname = "{http://liferay.com/events}ipc.send")
public void catchBall(EventRequest request, EventResponse response) {
Event event = request.getEvent();
String send = (String) event.getValue();
response.setRenderParameter("send", send);
}
it only passes one parameter with and only String.
I've tried passing Object like Foo
to this parameter but no luck. It won't run.
Any idea how to pass Object via event?
please really need help here.. :(