Just use

<js:ApplicationDataBinding />

but remember is a bead ;)

so:

<j:beads>
    <js:ApplicationDataBinding />
</j:beads>

Also for a View (in its own file), you should use
<js:ContainerDataBinding/>, instead of <js:ViewDataBinding/>, since there's
currently a bug that generates lots of listeners.




El vie., 2 oct. 2020 a las 23:56, wkoch (<warren.r.k...@boeing.com>)
escribió:

> I'm struggling with the basics here.  I'm used to Flex and I think this
> PAYG
> is messing me up.  I read about databinding and tried a bunch of stuff with
> no luck.  Given this simple code --  I expected the List to be populated
> with data but it's not.  What am I missing?
>
> <?xml version="1.0" encoding="utf-8"?>
> <j:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
>   xmlns:j="library://ns.apache.org/royale/jewel"
>   xmlns:js="library://ns.apache.org/royale/basic"
>   xmlns:html="library://ns.apache.org/royale/html"
>   xmlns:local="*"
>   initialize="appInit()">
> <fx:Style source="resources/app-styles.css"/>
> <js:ApplicationDataBinding />
> <js:ContainerDataBinding />
> <js:ViewDataBinding/>
>
> <fx:Script>
>
> </fx:Script>
> <j:valuesImpl>
> <js:SimpleCSSValuesImpl />
> </j:valuesImpl>
> <j:initialView>
>         <js:View x="10" y="5">
>                 <j:List localId="list1" width="200" height="300"  y="200"
> dataProvider="{simple}" />
>         </js:View>
> </j:initialView>
> </j:Application>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to