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.
http://issues.fluidproject.org/browse/FLUID-4637

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?

Thanks
Justin
_______________________________________________________
fluid-work mailing list - [email protected]
To unsubscribe, change settings or access archives,
see http://lists.idrc.ocad.ca/mailman/listinfo/fluid-work

Reply via email to