tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/66-best-praticepattern-question-when-making-sure-data-populated-on-component-during-early-stagesRobotlegs: Discussion 2013-04-28T10:29:56Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/10814752010-02-26T02:13:50Z2010-02-26T02:13:50ZBest pratice/pattern question when making sure data populated on component during early stages<div><p>This is how I usually handle it. Array makes a poor choice for
Flex data binding (IList collections are a lot nicer), but the
Robotlegs approach is proper.</p>
<ol>
<li>Mediator onRegister fires event<br></li>
<li>Event triggers command<br></li>
<li>Command calls service<br></li>
<li>Service receives result and dispatches event<br></li>
<li>Mediator gets event and sets bound prop on view</li>
</ol>
<p>Good stuff!</p></div>Joel Hooks