>From the sample XML, aren't attributes product-dependent?   Or does your
data call only bring back one product at a time?

If you want, you can disable binding warnings in the flex-config file.
I personally prefer finding  way to suppress the warnings with code
though.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rajesh Jayabalan
Sent: Monday, July 11, 2005 7:00 PM
To: [email protected]
Subject: [flexcoders] Re: unknown property warning

Hi,

 Thanks, I do not have to change the product, so I'll just forget it.

Regards
Rajesh J
--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> Actually, it is a warning, and I believe in you case it can be safely
> ignored.  Using "dot.down" notation often causes Flex to lose track of
> the datatype of the end element, and the compiler uses the datatype
> information to set up its change listener infrastructure.  
> 
> However, my advice would be to create a global variable declared as an
> array, and on change of the product, assign the Attributes property to
> that variable, then bind to the variable.
> 
> Tracy
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Rajesh Jayabalan
> Sent: Monday, July 11, 2005 2:03 PM
> To: [email protected]
> Subject: [flexcoders] Re: unknown property warning
> 
> Hi,
> 
>  Can anyone help me with this. How do I bind my xml.
> 
> Regards
> Rajesh J
> --- In [email protected], "Rajesh Jayabalan" <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> > 
> >  How do I bind it.. 
> > 
> >  I thought by 
> > 
> > <mx:Array id="attArr">{dataObject.Attributes}</mx:Array>
> > 
> > and then 
> > 
> > <mx:Repeater id="att" dataProvider="{attArr.Attribute}">
> > 
> > I thought I was binding it.. but I still get the same error.
> > 
> > Rajesh J
> > 
> > --- In [email protected], "Abdul Qabiz" <[EMAIL PROTECTED]>
wrote:
> > > Check the FAQs to find why you see this warning. FAQs:
> > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > 
> > > What is dataObject?
> > > 
> > > I think, if you make it  
> > > 
> > > <mx:Model id="dataObject">
> > > </mx:Model>
> > > 
> > > It should work properly...
> > > 
> > > 
> > > -abdul
> > > 
> > > -----Original Message-----
> > > From: [email protected]
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Rajesh Jayabalan
> > > Sent: Saturday, July 09, 2005 4:57 AM
> > > To: [email protected]
> > > Subject: [flexcoders] unknown property warning
> > > 
> > > Hi,
> > > 
> > >  I am getting data using a HTTPService from a jsp.
> > > 
> > > which returns an xml of the following format
> > > 
> > > <catalog>
> > > <product>
> > >   <id>1</id> 
> > >   <name>Table Cloth (Cotton)</name> 
> > >   <description /> 
> > >   <image>assets/noimage.jpg</image> 
> > >  <Attributes>
> > >  <Attribute>
> > >   <Name>Color</Name> 
> > >  <Attvalues>
> > >   <data>17</data> 
> > >   <label /> 
> > >   </Attvalues>
> > >   </Attribute>
> > >  <Attribute>
> > >   <Name>Size</Name> 
> > >  <Attvalues>
> > >   <data>8</data> 
> > >   <label /> 
> > >   </Attvalues>
> > >   </Attribute>
> > >   </Attributes>
> > >   </product>
> > >  <product>
> > >   <id>10</id> 
> > >   <name>Baseball Cap</name> 
> > >   <description /> 
> > >   <image>assets/noimage.jpg</image> 
> > >  <Attributes>
> > >  <Attribute>
> > >   <Name>Color</Name> 
> > >  <Attvalues>
> > >   <data>7</data> 
> > >   <label>Black</label> 
> > >   </Attvalues>
> > >  <Attvalues>
> > >   <data>5</data> 
> > >   <label>White</label> 
> > >   </Attvalues>
> > >  <Attvalues>
> > >   <data>6</data> 
> > >   <label>Blue</label> 
> > >   </Attvalues>
> > >  <Attvalues>
> > >   <data>4</data> 
> > >   <label>Red</label> 
> > >   </Attvalues>
> > >   </Attribute>
> > >  <Attribute>
> > >   <Name>Size</Name> 
> > >  <Attvalues>
> > >   <data>3</data> 
> > >   <label>Large</label> 
> > >   </Attvalues>
> > >  <Attvalues>
> > >   <data>1</data> 
> > >   <label>Small</label> 
> > >   </Attvalues>
> > >  <Attvalues>
> > >   <data>2</data> 
> > >   <label>Medium</label> 
> > >   </Attvalues>
> > >   </Attribute>
> > >   </Attributes>
> > >   </product>
> > > 
> > > 
> > > when I use this in a repeater
> > > 
> > > <mx:Repeater id="att"
> dataProvider="{dataObject.Attributes.Attribute}">
> > > 
> > > I get the warning on my browser and my app server console 
> > > 
> > > Warning
> > >
>
C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml
> > > :44
> > > 
> > > Changes to unknown property, Attribute, will not be detected.
> > > 
> > > 
> > > The data is coming back and is display fine. What is this warning
> > > about and how do I clear this.
> > > 
> > > Regards
> > > Rajesh J
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > > Yahoo! Groups Links
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to