Possible issue with IoC and event injection

Justin Obara obara.justin at gmail.com
Thu Mar 8 20:59:41 UTC 2012

Hi Antranig, 

I came across an issue with IoC and event injection today. I'm not sure if what I'm trying to do is valid or not, but I filed a jira and wrote a unit test to show the issue.

The issue seems to be around event injection, and using multiple instances of the same subcomponent. In my case I actually have 3 instances of the same component as subcompoents, they are used to manage the controls for the various types of export in Decapod. This component has a button to kick off the export, and does so by firing an event. What I wanted to do was to tie these three events to a single event all the way up the stack in the parent. I did this with a single demands block, and it worked. However, what I found was that for the subcomponent's own internal listener for the event, it will only ever trigger for the last instance of the subcomponent. 

It'll probably be easier to look at the unit tests to see the structure. 

ls there a more appropriate or alternative way to achieve the same goal?


More information about the fluid-work mailing list