tags:

views:

14

answers:

0

Hello, sorry for my english, here is my question:

I need to render a new instance of a portlet from the generation of a event in another portlet (JSR-286):

I mean, when I catch the event in the method:

@ProcessEvent(qname="{http://liferay.com/events}ipc.pitch")
public void catchBall(EventRequest request, EventResponse response) {
    Event event = request.getEvent();
    String pitch = (String)event.getValue();
    ....
}

Depending on the value of pitch, I need to show a new instance of the portlet, or retrieve the preferences of a portlet instance if it was stored.

Any idea how I could do it?