tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/1228-binding-in-a-mediatorRobotlegs: Discussion 2012-11-13T10:39:42Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/204850682012-11-06T09:25:17Z2012-11-06T09:25:17ZBinding in a mediator<div><p>sounds like you want presentation model<br>
<a href=
"http://knowledge.robotlegs.org/discussions/suggestions/6-presentation-model-vs-mediator-design-pattern">
http://knowledge.robotlegs.org/discussions/suggestions/6-presentati...</a></p>
<p><a href=
"http://joelhooks.com/2010/01/16/robotlegs-image-gallery-example-using-as3-signals-and-the-presentation-model/">
http://joelhooks.com/2010/01/16/robotlegs-image-gallery-example-usi...</a></p></div>neiltag:robotlegs.tenderapp.com,2009-10-18:Comment/204850682012-11-06T09:31:27Z2012-11-06T09:31:27ZBinding in a mediator<div><p>Hello,</p>
<p>In most cases, the recommended way is:</p>
<p>A Model dispatches a custom event with a VO as a payload when
its data changes.<br>
A Mediator listens for that event and passes the VO on to its View
by accessing View’s API.</p>
<p>Useful reads:</p>
<p><a href=
"http://knowledge.robotlegs.org/kb/reference-mvcs-implementation/what-are-the-responsibilities-of-the-model-class-in-mvcs">
http://knowledge.robotlegs.org/kb/reference-mvcs-implementation/wha...</a></p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/wiki/Best-Practices#wiki-models">
https://github.com/robotlegs/robotlegs-framework/wiki/Best-Practice...</a></p>
<p>and, of course, lots and lots of forum-discussions on this topic
:</p>
<p><a href=
"http://knowledge.robotlegs.org/search?q=model&t=d&scope=all&category_id=&recommend=1">
http://knowledge.robotlegs.org/search?q=model&amp;t=d&amp;scope=all...</a></p>
<p>Let us know if it helped you or not. Ask more questions if need
be :)</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/204850682012-11-06T09:35:30Z2012-11-06T09:38:02ZBinding in a mediator<div><p>Oops, didn’t notice Neil answered already.<br>
+1 to Neil’s suggestion</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/204850682012-11-07T14:35:36Z2012-11-07T14:35:36ZBinding in a mediator<div><p>SPAM ALERT!</p></div>neiltag:robotlegs.tenderapp.com,2009-10-18:Comment/204850682012-11-07T14:41:42Z2012-11-07T14:41:42ZBinding in a mediator<div><p>Thanks, Neil. Spammer removed.</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/204850682012-11-10T00:45:58Z2012-11-10T00:45:58ZBinding in a mediator<div><p>Thank you all for the responses. I'm going with the VO approach
right now, mainly because I am in learning mode. Once I get a bit
more comfortable with the framework, I will employ the PM design
and see what's doin</p>
<p>Again, thanks</p></div>hbostictag:robotlegs.tenderapp.com,2009-10-18:Comment/204850682012-11-13T10:39:41Z2012-11-13T10:39:41ZBinding in a mediator<div><p>You’re welcome!</p></div>Ondina D.F.