DropDownList giving an error: this.view is undefined

B

Bash

Guest
Main File:

<j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:local="*"
xmlns:models="models.*"
xmlns:js="library://ns.apache.org/royale/basic" xmlns:j="library://ns.apache.org/royale/jewel">
<fx:Script>
<![CDATA[
import models.ProductsModel;

import org.apache.royale.html.DataGrid;

import products.Product;
import org.apache.royale.collections.ArrayList;

]]>
</fx:Script>

<js:valuesImpl>
<js:SimpleCSSValuesImpl />
</js:valuesImpl>

<js:initialView >
<j:View>
<j:beads>
<js:ContainerDataBinding/>
</j:beads>
<js:model>
<models:ListsModel id="listModel" />
</js:model>

<j:DropDownList>
<j:beads>
<js:ConstantBinding
sourceID="listModel"
sourcePropertyName="ComponentList"
destinationPropertyName="dataProvider" />
</j:beads>
</j:DropDownList>
</j:View>
</js:initialView>
</j:Application>



The debugging Error I am getting: this.view is undefined

This error points to the following function in the DropDownListController.js file:

org.apache.royale.jewel.beads.controllers.DropDownListController.prototype.selectedHandler = function(event) {
this.model.selectedIndex = (event.index) >> 0;
this.model.selectedItem = event.data;
this.view.host.dispatchEvent(new org.apache.royale.events.Event(org.apache.royale.events.Event.CHANGE));
};


Any Idea as to why its throwing this Exception?

Continue reading...
 
Top