[flexcoders] Best Practice for Subclassed UIComponent and DataProvider

2011-08-25 Thread hanzo55
I am working with a project already in place. It uses Cairngorm and is built on Flex 3.0.2.2113 A standard ComboBox is implemented in one of the views like so: mx:ComboBox dataProvider={model.facilities} id=Facility model is a bindable singleton, and one of its properties, facilities is a public

Re: [flexcoders] Best Practice for Subclassed UIComponent and DataProvider

2011-08-25 Thread Alex Harui
Binding a visual component to a singleton limits its reuse. So there may not really a best practice. The minimum code way is probably to assign the dataProvider in commitProperties instead of the constructor. The model.facilities might have its final assignment by then. On 8/25/11 9:41 AM,