tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/1059-multiple-view-instances-servicesRobotlegs: Discussion 2018-10-18T16:35:42Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/187523512012-09-14T14:18:22Z2012-09-14T14:18:22ZMultiple View Instances & Services<div><p>How about having a dictionary, or whatever suits you, of
views’ ids mapped to different event types corresponding to
the constants specified in a custom event class? The Service (or a
Command) gets the event type from the dictionary (stored in a VO or
Model), and dispatches the custom event mapped to the view’s
id (added to the AsyncToken), so only the mediator of that view
would react to that event.</p>
<p>Just a spontaneous idea.<br>
I haven't really put much thought into it yet, due to lack of time,
so, feel free to criticize the potential pitfalls of that
approach.</p></div>Ondina D.F.