Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B9D41200BF8 for ; Fri, 13 Jan 2017 20:44:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B8A30160B2E; Fri, 13 Jan 2017 19:44:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 161C6160B3F for ; Fri, 13 Jan 2017 20:44:29 +0100 (CET) Received: (qmail 17910 invoked by uid 500); 13 Jan 2017 19:44:29 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 17901 invoked by uid 99); 13 Jan 2017 19:44:29 -0000 Received: from Unknown (HELO jira-lw-us.apache.org) (207.244.88.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2017 19:44:29 +0000 Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 83ED825287 for ; Fri, 13 Jan 2017 19:44:26 +0000 (UTC) Date: Fri, 13 Jan 2017 19:44:26 +0000 (UTC) From: "Alex Harui (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-35227) [FlexJS] Data Binding Fails When Following Multiple References MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 13 Jan 2017 19:44:30 -0000 [ https://issues.apache.org/jira/browse/FLEX-35227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15822244#comment-15822244 ] Alex Harui commented on FLEX-35227: ----------------------------------- Compiler changes done in 448df176471251106639ea2c2af52d8c77bf54f0 to handle [Bindable] on getter/setters. FWIW, long chains should be handled with ChainBinding. I noticed that ContainerDataBinding supports it but ViewDataBinding does not, so maybe ViewDataBinding just needs to handle ChainBinding. > [FlexJS] Data Binding Fails When Following Multiple References > -------------------------------------------------------------- > > Key: FLEX-35227 > URL: https://issues.apache.org/jira/browse/FLEX-35227 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Apache FlexJS 0.8.0 > Reporter: Devsena > Assignee: Piotr Zarzycki > Attachments: POCSource_simple.zip, POCSource.zip > > > Bracketed data binding to UI component do not works properly in FlexJS 0.8.0 nightly build SDK (my tests were mainly concentrated to HTML output in browsers). > *Works* > {code} > > {code} > *Do not works* > {code} > > {code} > Binding to UI component seems do not works when there are multiple reference, i.e. _class.field.field_. Following are the snippets of the codes which I used in this test: > *InitialView MXML file* > {code} > [Bindable] private var anyClass:ClassA = new ClassA(); > protected function onTextInputChangeA(event:Event):void > { > anyClass.fieldA = myTI1.text; > } > > protected function onTextInputChangeB(event:Event):void > { > anyClass.subClass.fieldB = myTI2.text; > } > ... > > ... > > > > > ... > > > > {code} > *ClassA* > {code} > public class ClassA extends EventDispatcher > { > [Bindable] public var subClass:ClassB = new ClassB(); > > public function ClassA() { } > > private var _fieldA:String = ""; > [Bindable("fieldAChanged")] > public function get fieldA():String > { > return _fieldA; > } > > public function set fieldA(value:String):void > { > if (value != _fieldA) > { > _fieldA = value; > dispatchEvent(new Event("fieldAChanged")); > } > } > } > {code} > *ClassB* > {code} > [Bindable] public class ClassB extends EventDispatcher > { > public function ClassB() > { } > > private var _fieldB:String; > > [Bindable(event="fieldBChanged")] > public function get fieldB():String > { > return _fieldB; > } > > public function set fieldB(value:String):void > { > if (value != _fieldB) > { > _fieldB= value; > dispatchEvent(new Event("fieldBChanged")); > } > } > } > {code} > I've attached herewith the source to the test project. Please, take a look. -- This message was sent by Atlassian JIRA (v6.3.4#6332)