Hi, i am using a repeater to draw dynamic grid rows with labels and
togglebutton bars. The following works initially, but when the
localizedMessages object is updated and a binding event fires the
repeater breaks with the following error:

Error: Repeater is not executing.
        at mx.core::Repeater/get currentItem()
        at <anonymous>()

I have searched and found some staff on getRepeaterItem(), but if i
use it inside the repeater instead of currentItem it does not work
even the first time...

Any ideas?

Repeater mxml: 

<mx:Repeater id="notificationsRepeater"
dataProvider="{notificationsData}">
  <mx:GridRow width="100%" height="30">
    <mx:GridItem width="100%" height="100%" verticalAlign="middle">
      <mx:Label
text="{localizedMessages[String(notificationsRepeater.currentItem.name)]}"/>
    </mx:GridItem>
    <mx:GridItem width="100%" height="100%" horizontalAlign="center"
verticalAlign="middle" colSpan="2">
      <mx:ToggleButtonBar dataProvider="[Yes,No]"
selectedIndex="{notificationsRepeater.currentItem.value==true?0:1}"
itemClick="notificationsChanged()">
      </mx:ToggleButtonBar>
    </mx:GridItem>
  </mx:GridRow>
</mx:Repeater>


Reply via email to