2009/2/10 Adam Tuttle <[email protected]>:
> Tom, that would in theory necessitate multiple listener lines for the same
> function in the same controller if it was needed for different events.
Hmm, no, here's a concreate example, where the main view does
new ModelGlueEvent(EventHandlers.applicationStart).dispatch();
And multiple Command's need to do things:
<control:DataController id="dataController">
<control:messageListeners>
<MessageListener
message="{MessageBroadcasts.applicationStart}"
method="{dataController.refresh}" />
.
.
.
<control:IconStateController id="iconStateController">
<control:messageListeners>
<MessageListener
message="{MessageBroadcasts.applicationStart}"
method="{iconStateController.setInitialState}" />
> Hopefully this illustrates that you're adding extra work (which may be part
> of why you're frustrated with the repetitiveness of it?) via extra lines of
> XML.
How would you construct the above ?
> Clear as mud, right?
Think of me as a recovering Cairngorm addict if it helps :-)
--
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---