Foren

Liferay 7 OSGI Portlets Events

Ramiro Aramburu, geändert vor 7 Jahren.

Liferay 7 OSGI Portlets Events

New Member Beiträge: 3 Beitrittsdatum: 24.01.15 Neueste Beiträge
Hi all,

Does anybody know how to make events in Liferay 7 between two OSGI portlets???
I have this on the sender:
@Component(
immediate = true,
property = {

"com.liferay.portlet.private-request-attributes=false",
"com.liferay.portlet.private-session-attributes=false",
"com.liferay.portlet.display-category=category.sample",
"com.liferay.portlet.instanceable=true",
"javax.portlet.display-name=Buscador comercios",
"javax.portlet.init-param.template-path=/",
"javax.portlet.init-param.view-template=/view.jsp",
"javax.portlet.resource-bundle=content.Language",
"javax.portlet.security-role-ref=power-user,user",
"javax.portlet.supported-publishing-event=java.lang.String;x:drawCoordenates"
},
service = Portlet.class
)

and this on the receiver portlet:

@Component(
immediate = true,
property = {
"com.liferay.portlet.display-category=category.sample",
"com.liferay.portlet.instanceable=true",
"javax.portlet.display-name=",
"javax.portlet.init-param.template-path=/",
"javax.portlet.init-param.view-template=/view.jsp",
"javax.portlet.resource-bundle=content.Language",
"javax.portlet.security-role-ref=power-user,user",
"com.liferay.portlet.private-request-attributes=false",
"com.liferay.portlet.private-session-attributes=false",
"javax.portlet.supported-processing-event=java.lang.String;x:drawCoordenates"
},
service = Portlet.class
)

but nothing happend.

In Liferay 6.2 you have to define a publisher, a listener and definde the event, but I don't know how or where to define the Event, or wich is the problem, althought I cannot find any example on the webs of ISGI Portlets with Events.

Thanks in advance for your help.....
thumbnail
Milen Dyankov, geändert vor 7 Jahren.

RE: Liferay 7 ODGI Portlets Events

Expert Beiträge: 310 Beitrittsdatum: 30.10.12 Neueste Beiträge
Try with:

"javax.portlet.supported-publishing-event=drawCoordenates; http://your.events.custom/ns"
"javax.portlet.supported-processing-event=drawCoordenates; http://your.events.custom/ns"
Ramiro Aramburu, geändert vor 7 Jahren.

RE: Liferay 7 OSGI Portlets Events

New Member Beiträge: 3 Beitrittsdatum: 24.01.15 Neueste Beiträge
not working, nothing happend.
Does anybody made any example of events working between two diferent OSGI Portlets Modules in a Liferay Workspace running on Liferay 7?
Because I cannot find any example of this, wich is weird because it was very used and usefull in Liferay 6.2 for example.
Also, there is nothing or almost nothing information about IPC inter portlet communnication with OSGI Framework... I would aprecciatte some links, tutorials, etc....
Ramiro Aramburu, geändert vor 7 Jahren.

RE: Liferay 7 OSGI Portlets Events

New Member Beiträge: 3 Beitrittsdatum: 24.01.15 Neueste Beiträge
nobody? I have some dificulties on IPC Events, Public Render Parameters IPC, Portlet Sessions IPC, between OSGI portlets.
For example where should I put this settings?
<container-runtime-option>
<name>javax.portlet.actionScopedRequestAttributes</name>
<value>true</value>
</container-runtime-option>