tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/8898-good-pracicesRobotlegs: Discussion 2014-01-22T15:27:42Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/307523082013-12-27T09:00:25Z2013-12-27T09:00:25ZGood pracices<div><p>Hello,</p>
<p>Sorry for the late response. I'm actually on vacation, so, here,
just a quick answer:</p>
<ol>
<li>
<p>classical way<br>
Mediators listen for events dispatched by a Model when its data
changes.<br>
Mediators can access their Views through their APIs when they
receive the event, passing a payload with a VO containing the data
needed by the view.</p>
</li>
<li>
<p>inject models into mediators, as interfaces</p>
</li>
<li>
<p>use viewProcessorMap</p>
</li>
</ol>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/blob/master/src/robotlegs/bender/extensions/viewProcessorMap/readme.md">
https://github.com/robotlegs/robotlegs-framework/blob/master/src/ro...</a></p>
<p>Discussions on this forum about viewProcessorMap:<br>
<a href=
"http://knowledge.robotlegs.org/search?q=viewprocessormap&recent=1&recommend=1&t=d">
http://knowledge.robotlegs.org/search?q=viewprocessormap&amp;recent...</a></p>
<p>Hope that helps.<br>
Ondina</p></div>Ondina D.F.