Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-25932

PopUpManager.addPopUp disables binding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.1 (Release)
    • None
    • PopUp Manager
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:

      Create simple component with binding between selected item of combobox and text :

      <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">
      <mx:ComboBox id="cb" labelField="name">
      <mx:dataProvider>
      <s:ArrayCollection>
      <fx:Object name="item1"/>
      <fx:Object name="item2"/>
      <fx:Object name="item3"/>
      <fx:Object name="item4"/>
      </s:ArrayCollection>
      </mx:dataProvider>
      </mx:ComboBox>
      <mx:Text text="

      {cb.selectedItem.name}

      "/>
      </mx:VBox>

      Create an application using the component, and pop up the component when button is clicked :

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:component="component.*">
      <fx:Script>
      <![CDATA[
      import mx.managers.PopUpManager;
      ]]
      >
      </fx:Script>

      <mx:VBox id="container">
      <component:TestBindPopup id="popUp"/>
      <mx:Button label="click" click="

      {PopUpManager.addPopUp(popUp, this);}

      "/>
      </mx:VBox>
      </s:Application>

      Actual Results:

      Binding is correct when component is not popped up, but after the addPopUp binding is disabled.

      When the addPopUp is called, SystemManager does an "addChild" which calls a "removeChild" on component container. During "removeChild" the container disables all binding of the component.

      Expected Results:

      Binding is enabled after the addPopup like in Flex 3.

      Workaround (if any):

      Call BindingManager.setEnabled(popUp, true) after the addPopup.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: