|
|
|
[
Permlink
| « Hide
]
Tom Sugden - 11/Aug/09 10:09 AM
I can immediately see some use cases for this. For example, when using the LCDS Data Management Service it is useful for a view to know the value of the commitRequired property of a service. However, we generally don't want views coupled directly to services. Instead we could now define a boolean property on a presentation model declared in the context, and bind it to the commitRequired property of a DataService defined elsewhere in the context.
When adding this feature, please pay attention to the weakRef=true flags on bindings available in the Flex 4 SDK. Bindings in Flex 3 have been one of the most problematic sources of memory leaks in my experience. Adobe finally fixed this in Flex 4 for both manually created bindings via BindingUtils and also for generated bindings via mxmlc.
|
|||||||||||||||||||||||||||||||||||||||