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] <mailto:[EMAIL PROTECTED]> 
:: http://flex.joshmcdonald.info/ <http://flex.joshmcdonald.info/> 

 

Reply via email to