I don't think that is correct.  The XML class does dispatch the events
necessary for binding.  I'll look for the doc reference in a bit.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Wednesday, March 07, 2007 6:44 PM
To: [email protected]
Subject: Re: [flexcoders] Re: Another data binding question - "on class
'XML' (class is not an IEventDispa

 

It may be working so far because the objects you set your XML as a
dataProvider are wrapping it as an XMLListCollection or similar, which
will provide notification mechanisms. The XML class as-is can't
participate in binding as it doesn't dispatch events (which is required
for binding). 

Troy.

On 3/7/07, Tracy Spratt <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

That fix seems to apply to objects in a collection or array.

 

How do I apply it to xml attributes?

 

And again, is it a valid warning?  Or can it be ignored.  The bindings
seem to work (so far)

 

Tracy

 

________________________________

From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com
<http://ups.com> ] On Behalf Of coderjun
Sent: Tuesday, March 06, 2007 9:28 PM
To: [email protected]
Subject: [flexcoders] Re: Another data binding question - "on class
'XML' (class is not an IEventDispa

 

All,

I was troubleshooting this binding warning the other day myself and ran
across this blog - that at least in my case - addressed the issue,
complete with a detailed explanation and code examples.  The key is
using an ObjectProxy.

http://blog.wheelerstreet.com/?p=16
<http://blog.wheelerstreet.com/?p=16>  

I hope that helps.

-Jun

--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Correction, the warnings do show up in FB after all.
> 
> Tracy
> 
> 
> 
> ________________________________
> 
> From: [email protected] [mailto:[email protected]
<mailto:[email protected]> ] On
> Behalf Of Tracy Spratt
> Sent: Tuesday, March 06, 2007 1:11 PM
> To: [email protected]
> Subject: RE: [flexcoders] Another data binding question - "on class
> 'XML' (class is not an IEventDispatcher)"
> 
> 
> 
> Hey, Julien, did you figure this out yet? I just noticed it in my
trace
> log. And oddly, I do not get the warnings in FlexBuilder.
> 
> 
> 
> Perhaps it is a spurious warning? The archives don't show any
definitive
> solution. I'm still looking.
> 
> 
> 
> Tracy
> 
> 
> 
> ________________________________
> 
> From: [email protected] [mailto:[email protected]
<mailto:[email protected]> ] On
> Behalf Of julien castelain
> Sent: Friday, March 02, 2007 1:20 AM
> To: [email protected]
> Subject: [flexcoders] Another data binding question
> 
> 
> 
> Hi list,
> 
> I have a DataGrid in my application that gets populated from an XML
> file. Displaying the data in the grid 'as text' works fine, but I
> wanted to use an item renderer, as soon as I do this I get this
warning
> : 
> 
> "warning: unable to bind to property 'icon' on class 'XML' (class is
> not an IEventDispatcher)"
> 
> How can I get rid of that warning? Do I have to cast the XML to some
> other class, and how could I do this?
> 
> Thanks for your help.
> 
> Julien
>

 

 

Reply via email to