Vaadin IPC for Liferay not working with already added portlets

Hi! I`m having problems with IPC addon.

I have multiple instances of the same portlet (same war) on one page. I need to inform all other portlets, when one of them goes into edit mode.

I succesfully added sending and receiving functionality of IPC addon but stumbled on a strange bug:

When adding lets say portlet 1, 2, and 3 (in that order) this happens:

  • When triggering send event in portlet 1, both portlets 2 and 3 receive it
  • When triggering send event in portlet 2, only portlet 3 receives the event
  • When triggering send event in portlet 3, neither portlet 1 nor 2 receive any events

It looks as if portlets added at some point in time were unable to catch events from portlets added before them (listened doesn’t trigger)

Any ideas what might be wrong and how to solve it?