Tag: portlets

Portlet IPC Through Events.

  1. Portlet IPC means inter portlet communication. IPC is nothing but sending data from one portlet to another portlet.
  2. Events concept is implemented in JSR286.
  3. Please follow below steps to see the example.
  4. Take new project. 1
  5. Project structure1a
  6. code in eventsender jsp2.JPG
  7. code in process action of event sender. Note that we can set events in process action or process events method.3.JPG
  8. code in processEvent of event receiver portlet.4
  9. We need to add supported publishing event and supported processing event tags in portlet.xml file.5b.JPG5a.JPG
  10. code in event receiver portlet jsp.6.JPG
  11. Deploy portlet into server and do the wiring in portlet admin console.8.JPG
  12. Results as below.9a9b