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 2152E200C10 for ; Fri, 20 Jan 2017 00:15:39 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1FE1D160B57; Thu, 19 Jan 2017 23:15:39 +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 6A93B160B54 for ; Fri, 20 Jan 2017 00:15:38 +0100 (CET) Received: (qmail 88937 invoked by uid 500); 19 Jan 2017 23:15:37 -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 88928 invoked by uid 99); 19 Jan 2017 23:15:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2017 23:15:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BC6D2188877 for ; Thu, 19 Jan 2017 23:15:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id zdgKilNViW7A for ; Thu, 19 Jan 2017 23:15:35 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 71F9A5F3F5 for ; Thu, 19 Jan 2017 23:15:35 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 57FAEE8F32 for ; Thu, 19 Jan 2017 23:15:27 +0000 (UTC) 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 94CA12528A for ; Thu, 19 Jan 2017 23:15:26 +0000 (UTC) Date: Thu, 19 Jan 2017 23:15:26 +0000 (UTC) From: "Piotr Zarzycki (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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: Thu, 19 Jan 2017 23:15:39 -0000 [ https://issues.apache.org/jira/browse/FLEX-35227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piotr Zarzycki updated FLEX-35227: ---------------------------------- Attachment: POCSource_final.zip > [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_final.zip, 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)