Hi Warren,

about the binding bead I said in my other response : "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."

About Jewel List check these 2 examples:

   - https://royale.apache.org/using-an-item-renderer-with-a-list/
   - https://royale.apache.org/adding-an-item-to-a-jewel-list/

(or even Tour De Jewel List page)

also check is reference page for more examples and info about the component:

   -
   https://apache.github.io/royale-docs/component-sets/jewel/list#jewel-list

HTH

Carlos


El sáb., 3 oct. 2020 a las 15:43, Koch (US), Warren R (<
[email protected]>) escribió:

> Yes I opened up a bunch of examples and tried to get them to work.  The
> code I included was simplified from the Jewel example.  I have gotten
> binding to work on Label but List refuses to cooperate. And that's why I
> went back to basics and came to this forum.
>
>
>
> I just tried the change Carlos suggested
>
>
>
> <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()">
>
>                 <j:beads>
>
>                     <js:ApplicationDataBinding />
>
>                     <js:ContainerDataBinding />
>
>                 </j:beads>
>
>
>
> and it won't bind.  The List is empty.
>
>
>
> I added in under my View
>
>
>
> <js:beads>
>
> <js:ViewDataBinding />
>
> </js:beads>
>
>
>
> and it won't bind.  The List is empty.
>
>
>
> *From:* Piotr Zarzycki [mailto:[email protected]]
> *Sent:* Saturday, October 03, 2020 5:00 AM
> *To:* [email protected]
> *Subject:* [EXTERNAL] Re: How do i get a simple list to bind?
>
>
>
> This message was sent from outside of Boeing. Please do not click links or
> open attachments unless you recognize the sender and know that the content
> is safe.
>
>
>
>
> Did you open any example from Royale and just build? Literally almost all
> examples are using somehow databinding.
>
>
>
> On Sat, Oct 3, 2020, 12:50 AM Carlos Rovira <[email protected]>
> wrote:
>
> 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 (<[email protected]>)
> 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
>
>
>
>

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

Reply via email to