Post one of the lines that produces the warning. Tracy
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Tuesday, May 06, 2008 8:17 PM To: [email protected] Subject: [flexcoders] Re: itemRender Debug Warnings I've got 29 lists, so I'm not sure I want 29 ArrayCollections with bindings :-) The code is far too extensive to post here, but the warning it not at compile, but in Debug mode at runtime. I get this for every field in the list that I bind to in the itemRenderer. So with my Object = {itemID: myID, index: myAC[myID].id, display: gridDisplay, toolTip: tipText}; If in the itemRenderer I bind to "display" and "toolTip", I get 2 warnings for each item in the List dataProvider. I'm fairly sure that it has to do with how I take the RemoteObject restul data and assign it to the ArrayCollection. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Hmmm, if List.dataProvider.addItem() works, then the dataProvider must > be an ArrayCollection. It still may be "behind" an Object though. > > > > Instead doing what you are, I'd declare a var as an ArrayCollection, do > your loop and add your items. Bind that var to the List.dataProvider. > > > > Also, exactly what line is causing the warning? Post it. > > > > Tracy > > > > > > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of jmfillman > Sent: Tuesday, May 06, 2008 7:41 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Re: itemRender Debug Warnings > > > > To be more thorough in my response, I loop through the data in an > ArrayCollection to create this Object that I then add to a List > component. > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% 40yahoogroups.com> > , "jmfillman" <jmfillman@> wrote: > > > > It's a standard List component. > > > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <tspratt@> wrote: > > > > > > What is the dataProvider? What data type? > > > > > > Tracy > > > > > > > > > > > > ________________________________ > > > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> ] On > > > Behalf Of jmfillman > > > Sent: Tuesday, May 06, 2008 6:47 PM > > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% 40yahoogroups.com> > > > > Subject: [flexcoders] Re: itemRender Debug Warnings > > > > > > > > > > > > Thank you for the reply Tracy! > > > > > > So instead of adding the items to the list as an Object I > > > should......? > > > > > > var objDG:Object = {itemID: myID, index: myAC[myID].id, display: > > > gridDisplay, toolTip: tipText}; > > > > > > myList.dataProvider.addItem(objDG); > > > > > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% > > 40yahoogroups.com> > > > , "Tracy Spratt" <tspratt@> wrote: > > > > > > > > Neither Array nor Object are bindable, they do not dispatch the > > > > necessary events. Wrap your Array in an ArrayCollection. > > > > > > > > > > > > > > > > One other cause of this warning is when you have a bindable > > object > > > that > > > > you reference through a property typed as Object, as with > > > selectedItem, > > > > currentItem, data, getRepeaterItem(), etc. In that case you can > > > convert > > > > or cast the Object to the true data type to prevent the > warnings. > > > > > > > > > > > > > > > > Tracy > > > > > > > > ________________________________ > > > > > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% > > 40yahoogroups.com> > > > > > > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% > > 40yahoogroups.com> > > > ] On > > > > Behalf Of jmfillman > > > > Sent: Tuesday, May 06, 2008 6:14 PM > > > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% > > 40yahoogroups.com> > > > > Subject: [flexcoders] itemRender Debug Warnings > > > > > > > > > > > > > > > > Since implementing some itemRenderers, I've been getting > > warnings, > > > in > > > > Debug mode, that read like this: > > > > > > > > warning: unable to bind to property 'display' on class 'Object' > > > (class > > > > is not an IEventDispatcher) > > > > > > > > From what I've been able to find on the www, is that this is > > > related to > > > > setting RemoteObject results to an array, like this: > > > > > > > > myAC.source = event.result as Array; > > > > > > > > Question is, how to I do this correctly to prevent all those > > > warnings? > > > > > > > > > >

