I had an issue today with ComboBox and its model not being present on the
JS side; it was building SWF only. Maybe something similar is happening
for List since you mention labelField which should be part of the model
List uses. Just an idea, but its odd that you get a similar error to what
I had today.

Does DataBindingExample work? It uses DropDownList which executes (mostly)
the same List code underneath.

‹peter

On 11/21/16, 4:20 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:

>Hi Alex or Peter,
>
>I'm building a MDL List from js:List
>
>I configured a basic js:List example, and then make a copy to get the MDL
>List with the basic changes. Then the example does not work anymore with
>the following browser error:
>
>dispatchEvent ‹ EventDispatcher.js:70.   TypeError: null is not an object
>(evaluating 'org.apache.flex.utils.Language.as(listView.host,
>org.apache.flex.html.List).labelField')
>
>
>
>This is the List example code:
>
><mdl:List id="list" width="130" labelField="label">
>                    <js:dataProvider>
>                        <fx:Array>
>                            <fx:Object label="Install SIM Card"/>
>                            <fx:Object label="Install SIM Card 1"/>
>                            <fx:Object label="Install SIM Card 2"/>
>                        </fx:Array>
>                    </js:dataProvider>
>                </mdl:List>
>
>
>First, in basic js:List example I must declare labelField="label" in order
>to work.
>Then I expect that cloning this example to MDL should just work and then
>iterate the changes to get MDL look and feel, but seems it's not as easy.
>
>Hope you guys could point me to where is this failing :)
>
>Thanks
>
>-- 
>Carlos Rovira
>http://about.me/carlosrovira

Reply via email to