Piotr Zarzycki created FLEX-35236:
-------------------------------------
Summary: 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
Priority: Minor
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)