Well I'll be buggered, it works. Data / DataProvider / DataSource are all
Object too, and you can bind to them. Lousy Repeater :)
Thanks for that Tracy :)
-Josh
On Tue, Oct 21, 2008 at 12:55 AM, Tracy Spratt <[EMAIL PROTECTED]>wrote:
> It is because "currentItem" is an Object, which is not bindable. Cast it
> to your bindable class:
>
> text="{
> RemittanceFileListEntry(remittanceRepeater.currentItem).remittanceFile }"
>
>
>
> Tracy
> ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Monday, October 20, 2008 2:17 AM
> *To:* [email protected]
> *Subject:* [flexcoders] Repeater giving bogus Binding warnings?
>
>
>
> Hey Guys, I'm getting binding warnings that don't make any sense. Here's my
> repeater code:
>
> <mx:Repeater id="remittanceRepeater" dataProvider="{
> selectedPayment.remittanceFiles }">
>
> <mx:HBox verticalAlign="middle">
> <mx:TextInput width="140" text="{
> remittanceRepeater.currentItem.remittanceFile }"/>
> <mx:Button styleName="removeRow" label="-" width="24" height="24"
> data="{remittanceRepeater.currentItem}" click="removeRemittance(event)"/>
> </mx:HBox>
>
> </mx:Repeater>
>
> I'm getting the following warning for every row in
> selectedPayment.remittanceFiles:
>
> warning: unable to bind to property 'remittanceFile' on class
> 'fundsmanagement.business.model::RemittanceFileListEntry'
>
> But RemittanceFileListEntry.as is bindable:
>
> public class RemittanceFileListEntry extends EventDispatcher
> {
> [Bindable]
> public var remittanceFile : String;
> }
>
> If there a way to kill this bogus warning?
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> :: http://flex.joshmcdonald.info/
>
>
>
--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
Like the cut of my jib? Check out my Flex blog!
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/