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 C90BD200C7B for ; Sat, 20 May 2017 11:48:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C7A19160BBC; Sat, 20 May 2017 09:48:10 +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 BFDFB160BAD for ; Sat, 20 May 2017 11:48:09 +0200 (CEST) Received: (qmail 8186 invoked by uid 500); 20 May 2017 09:48:09 -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 8176 invoked by uid 99); 20 May 2017 09:48:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 May 2017 09:48:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 965C2CDB8B for ; Sat, 20 May 2017 09:48:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dzVpdh6Ab6B0 for ; Sat, 20 May 2017 09:48:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A05E15F2AE for ; Sat, 20 May 2017 09:48:06 +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 8B473E00D4 for ; Sat, 20 May 2017 09:48:05 +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 DF44A21B55 for ; Sat, 20 May 2017 09:48:04 +0000 (UTC) Date: Sat, 20 May 2017 09:48:04 +0000 (UTC) From: "Piotr Zarzycki (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-35310) Issue with same Id assigned to components in different views MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 20 May 2017 09:48:11 -0000 [ https://issues.apache.org/jira/browse/FLEX-35310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piotr Zarzycki updated FLEX-35310: ---------------------------------- Description: *Issue:* Components in old Flex SDK could have same "Id" in different. Unfortunately in FlexJS assigning same "Id" for components laying out in different views cause major problems with behavior of those components in HTML. *Scenario:* I've created two small examples (both contains already built application - you can run it from target/javascript/bin/js-debug/index.html): 1) Built with pure Basic components - FirstView and SecondView file has following code: {code} {code} - View usage: {code} {code} *Results:* Attached image: "two_spans_with_same_id.png" 2) Built with MDL only components. - View1 and View2 file has following code: {code} {code} - View usage: {code} {code} *Results:* View1 and View2 contains "Menu" which is associated to some button. In this case second menu is not working at all. - Once I change "Id" for one of the menu in - both started to work. - But this is definitely not a solution. *Expected results:* FlexJS should allow for declaring same "Id" value in different views. was: *Issue:* Components in old Flex SDK could have same "Id" in different. Unfortunately in FlexJS assigning same "Id" for components laying out in different views cause major problems with behavior of those components in HTML. *Scenario:* I've created two small examples (both contains already built application - you can run it from target/javascript/bin/js-debug/index.html): 1) Built with pure Basic components - FirstView and SecondView file has following code: {code} {code} - View usage: {code} {code} *Results:* Attached image: "two_spans_with_same_id.png" 2) Built with MDL only components. - View1 and View2 file has following code: {code} {code} - View usage: {code} {code} *Results:* View1 and View2 contains "Menu" which is associated to some button. In this case second menu is not working at all. - Once I change "Id" for one of the menu in - both started to work. - But this is definitely not a solution. *Expected results:* FlexJS should allow for declaring same "Id" value in different view. > Issue with same Id assigned to components in different views > ------------------------------------------------------------ > > Key: FLEX-35310 > URL: https://issues.apache.org/jira/browse/FLEX-35310 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Apache FlexJS 0.8.0 > Reporter: Piotr Zarzycki > Attachments: DoubleIdIssue.zip, DoubleMDLIdIssue.zip, two_spans_with_same_id.png > > > *Issue:* > Components in old Flex SDK could have same "Id" in different. Unfortunately in FlexJS assigning same "Id" for components laying out in different views cause major problems with behavior of those components in HTML. > *Scenario:* > I've created two small examples (both contains already built application - you can run it from target/javascript/bin/js-debug/index.html): > 1) Built with pure Basic components > - FirstView and SecondView file has following code: > {code} > > xmlns:js="library://ns.apache.org/flexjs/basic"> > > > {code} > - View usage: > {code} > xmlns:js="library://ns.apache.org/flexjs/basic" > xmlns:views="views.*"> > > > > > > > {code} > *Results:* Attached image: "two_spans_with_same_id.png" > 2) Built with MDL only components. > - View1 and View2 file has following code: > {code} > > xmlns:mdl="library://ns.apache.org/flexjs/mdl" > xmlns:js="library://ns.apache.org/flexjs/basic" xmlns:models="models.*" > width="100"> > > > > > labelField="label" className="customMenuItemRenderer"> > > sourceID="menuModel" > sourcePropertyName="menuItems" > destinationPropertyName="dataProvider" /> > > > > {code} > - View usage: > {code} > > xmlns:mdl="library://ns.apache.org/flexjs/mdl" > xmlns:views="views.*"> > > > > > > {code} > *Results:* > View1 and View2 contains "Menu" which is associated to some button. In this case second menu is not working at all. - Once I change "Id" for one of the menu in - both started to work. - But this is definitely not a solution. > *Expected results:* > FlexJS should allow for declaring same "Id" value in different views. -- This message was sent by Atlassian JIRA (v6.3.15#6346)