[Arp] Populating a form
Chris Velevitch
chris.velevitch at gmail.com
Wed Jan 25 18:47:44 PST 2006
On 1/26/06, Sam Shrefler <sshrefler at gmail.com> wrote:
> Thank you! I do have one question:
>
> Why do you include the binding in the model locator? Can't you just add the
> binding in the view by saying,
>
> mycomponent_cb.dataProvider =
> modelLocator.getInstance().getModel("MYCOMPONENTMODEL");
That will only work with the standard components because they have
been written to refresh themselves when the data changes. Its when
your components/views need some form of automatic change notification
is when binding between your component/view and ModelLocator.
Hopefully this will be part of ModelLocator in the next release.
The reason for binding is to reduce coupling. Without binding, there
would need to be references between objects that retreive or modify an
VO and the views that need to refresh themselves with the modified VO.
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
More information about the Arp
mailing list