留言板

New instance of a portlet from the generation of a event JSR-286

JL C,修改在14 年前。

New instance of a portlet from the generation of a event JSR-286

New Member 帖子: 2 加入日期: 10-3-4 最近的帖子
Hello, sorry for my english, here 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?