Hi Peter, just tested DataBindingExample and is working. In my example I use
<additionalCompilerOptions>-compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css</additionalCompilerOptions> In order to get rid of whatever CSS rules that could be inherit from HTML.swc So I put in my MDL lib css this: @namespace "library://ns.apache.org/flexjs/mdl"; List { IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel"); IBeadView: ClassReference("org.apache.flex.html.beads.ListView"); IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController"); IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.VerticalLayout"); IContentView: ClassReference("org.apache.flex.html.supportClasses.DataGroup"); IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.DataItemRendererFactoryForArrayData"); IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer"); IViewport: ClassReference("org.apache.flex.html.supportClasses.ScrollingViewport"); IViewportModel: ClassReference("org.apache.flex.html.beads.models.ViewportModel"); border-style: solid; border-color: #222222; } To ensure I have a model (and other beads) 2016-11-21 22:57 GMT+01:00 Peter Ent <p...@adobe.com>: > 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 > > -- Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la prestación del servicio o información solicitados, teniendo usted derecho de acceso, rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación necesaria.