[
https://issues.apache.org/jira/browse/FLEX-35236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Harui resolved FLEX-35236.
-------------------------------
Resolution: Fixed
Assignee: Alex Harui
Fix Version/s: Apache FalconJX 0.8.0
448df176471251106639ea2c2af52d8c77bf54f0
> Binding is not working when [Bindable] is set for the class
> -----------------------------------------------------------
>
> Key: FLEX-35236
> URL: https://issues.apache.org/jira/browse/FLEX-35236
> Project: Apache Flex
> Issue Type: Bug
> Components: FlexJS
> Affects Versions: Apache FlexJS 0.8.0
> Reporter: Piotr Zarzycki
> Assignee: Alex Harui
> Priority: Minor
> Fix For: Apache FalconJX 0.8.0
>
>
> 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:
> {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;
> }
> }
> {code}
> Workaround is to set up [Bindable] for each property in value object:
> {code}
> 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;
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)