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

Repeater is not working inside states tag.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 2.0.1 (Release)
    • States
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Reproduction:
      1. Run below MXML code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
      <mx:Script>
      <![CDATA[
      [Bindable]
      public var dp1 = ['item1','item2','item3','item4','item5'];
      ]]
      >
      </mx:Script>

      <mx:Button label="Set currentState" click="currentState='rep'"/>

      <mx:states>
      <mx:State name="rep">
      <mx:AddChild>
      <mx:VBox>
      <mx:Repeater id="r1" dataProvider="

      {dp1}

      ">
      <mx:Button label="

      {r1.currentItem}

      "/>
      </mx:Repeater>
      </mx:VBox>
      </mx:AddChild>
      </mx:State>
      </mx:states>

      </mx:Application>

      2. Click button to set currentState
      3.

      Actual Results: Buttons inside the Repeater are not created.

      Expected Results: Repeater should execute.

      Workaround:

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: