You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Piotr Zarzycki (JIRA)" <ji...@apache.org> on 2017/04/26 06:02:04 UTC
[jira] [Created] (FLEX-35298) Two-way binding is not working with
-> @
Piotr Zarzycki created FLEX-35298:
-------------------------------------
Summary: Two-way binding is not working with -> @
Key: FLEX-35298
URL: https://issues.apache.org/jira/browse/FLEX-35298
Project: Apache Flex
Issue Type: Bug
Reporter: Piotr Zarzycki
Fix For: Apache FalconJX 0.8.0
Attachments: TwoWayBindingFlexJSTest.zip
In current version of FlexJS there is only one way to make Two-way binding by using tag: <fx:Binding/>.
{code:xml}
<js:model>
<vo:Book id="book"/>
</js:model>
<js:beads>
<js:VerticalLayout />
<js:ContainerDataBinding />
</js:beads>
<fx:Binding source="txtInput1.text" destination="book.title" twoWay="true"/>
<js:TextInput id="txtInput1" />
<js:Label text="{book.title}"/>
{code}
Doing binding as it was in old Flex SDK by "@" *is not working*.
{code:xml}
<js:model>
<vo:Book id="book"/>
</js:model>
<js:beads>
<js:VerticalLayout />
<js:ContainerDataBinding />
</js:beads>
<js:TextInput id="txtInput1" text="@{book.title}"/>
{code}
It would be great to have this feature in our framework cause it simplify code, a lot.
I'm attaching example project with both option if someone would like to take a look into that.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)