You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Harbs (JIRA)" <ji...@apache.org> on 2017/07/09 16:45:00 UTC

[jira] [Created] (FLEX-35336) Assigning a dataProvider to js:DropDownList causes RTE

Harbs created FLEX-35336:
----------------------------

             Summary: Assigning a dataProvider to js:DropDownList causes RTE
                 Key: FLEX-35336
                 URL: https://issues.apache.org/jira/browse/FLEX-35336
             Project: Apache Flex
          Issue Type: Bug
          Components: FlexJS
    Affects Versions: Apache FlexJS 0.8.0
            Reporter: Harbs


Assigning a dataProvider using mxml and data binding causes a RTE unless the value is initialized.

main mxml:


{code:xml}
<?xml version="1.0" encoding="utf-8"?>

<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://ns.apache.org/flexjs/basic" xmlns:ns1="*" >
    <js:valuesImpl>
        <js:SimpleCSSValuesImpl />
    </js:valuesImpl>
    <js:initialView>
    <ns1:InitialView/>
    </js:initialView>
</js:Application>

{code}

InitialView.mxml:

{code:xml}
<?xml version="1.0" encoding="utf-8"?>
<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:js="library://ns.apache.org/flexjs/basic"
         width="100%" height="100%" initComplete="init()">
         <fx:Script>
             <![CDATA[
                import org.apache.flex.collections.ArrayList;

                 [Bindable]private var categories:ArrayList;
                private function init():void{
                }

             ]]>
         </fx:Script>
         <js:beads>
            <js:ViewDataBinding/>
         </js:beads>
         <js:TextButton id="button" text="Press Me!"/>
        <js:DropDownList id="categoryDD" width="132" y="30"
            dataProvider="{categories}" selectedIndex="0"/>
        </js:View>
{code}





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)