Hi Mike, 

I presume nothing prevents you from accessing two different views via
ViewLocator singleton within one command.

Regards,
Alex.

-----Original Message-----
From: Michael Herron [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 2:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm Event to Command


Hi all


Just a quick question about using cairngorm:

In my application when a product has been added, I wish to broadcast a
"product added" event and have it picked up by two separate command classes
that will update two separate views. Unfortunately, when the event is
broadcast, it only seems to be picked up by the command class that was
registered last in the controller. 

To get round this I am having to broadcast two separate events specific to
the two views once a product has been added. Obviously, this doesn't provide
as high a level of de-coupling as I would like.

Has anyone else come across this problem? Am I doing something wrong or is
this a know "quirk"?


Cheers,
Mike




Yahoo! Groups Links









Reply via email to