Sounds like a compiler bug.  Try wrapping with Object: Object(field[FieldRepeater.count-1]).selected

 


From: [email protected] [mailto:[email protected]] On Behalf Of Stacy Young
Sent: Wednesday, January 25, 2006 2:21 PM
To: [email protected]
Subject: RE: [flexcoders] Can't get rid of warnings when deploying on unix

 

p.s. the warnings ONLY show once after the application is first deployed and is compiling. (weblogic 8.1 on solaris) After that its fine…

 


From: [email protected] [mailto:[email protected]] On Behalf Of Stacy Young
Sent: Wednesday, January 25, 2006 5:00 PM
To: [email protected]
Subject: [flexcoders] Can't get rid of warnings when deploying on unix

 

Flex-config is set NOT to display warnings but it decides on its own to do so anyway. Normally it hasn’t been a huge issue, we’d just fix the warning…but in the following case I’m not sure how to do that seeing as the binding is based on an _expression_:

 

The warning we’re getting is:  Changes to unknown property, selected, will not be detected.

 

It’s obvious why seeing as the compiler can’t evaluate the _expression_…can anyone off an alternative?

 

Thanks!

 

<mx:Repeater id="fieldRepeater"

                    dataProvider="{ModelLocator.selectedListItems}">

                <util:CheckBoxData id="field"

                    label="{fieldRepeater.currentItem.description}"

                    data="">

                    click="commitSelected(event)"

                    selected="{isSelected()}"

                    tabIndex="{fieldRepeater.currentIndex}" />

</mx:Repeater>

 

<mx:TextInput id="fieldText" width="100%"

                    enabled="{field[fieldRepeater.count-1].selected}" backgroundColor="#EFEEEF"

                    focusOut="commitSelected(event)"

                    tabIndex="{fieldRepeater.count}" />





--
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




Reply via email to