Hi Peter,

another thing I think is "failing" is the fact I need to explicitly set
labelField to "label" or I get [object Object]
I think List should asume labelField is "label" by default like in old Flex

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.

Reply via email to