Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Apache FlexJS 0.8.0
-
None
Description
Binding is not working when [Bindable] tag is set up for the class. If data source of some control will contains value objects with following code:
[Bindable] public class MenuItemVO { public var label:String; public var disabled:Boolean; public var hasDivider:Boolean; public function MenuItemVO(label:String, hasDivider:Boolean = false, disabled:Boolean = false) { this.label = label; this.hasDivider = hasDivider; this.disabled = disabled; } }
Workaround is to set up [Bindable] for each property in value object:
public class MenuItemVO { [Bindable] public var label:String; [Bindable] public var disabled:Boolean; [Bindable] public var hasDivider:Boolean; public function MenuItemVO(label:String, hasDivider:Boolean = false, disabled:Boolean = false) { this.label = label; this.hasDivider = hasDivider; this.disabled = disabled; } }
Attachments
Issue Links
- relates to
-
FLEX-35227 [FlexJS] Data Binding Fails When Following Multiple References
- Closed