Hello,
I have an application that uses the repeater to create multiple
instances of a custom mxml component (employeeElement).
<mx:Repeater id="employee" dataProvider="{directReportCollection}">
<v:employeeElement
itemNum="{employee.currentIndex}"
hasDirectReports="{employee.currentItem.Manager}"
employeeName="{employee.currentItem.FullName}"
jobTitle="{employee.currentItem.JobTitle}"
personID="{employee.currentItem.PersonID}"
personUUID="{employee.currentItem.PersonUUID}"
numDirectReports="{numDirectReports}"
asgUUID="{employee.currentItem.asgUUID}"
dakDB="{dakDB}"
isDirectReport="true"
goDownHeirarchy="goDownHeirarchy(event)"/>
</mx:Repeater>
The dataProvider for the repeater is directReportCollection which is
an ArrayCollection that has been declared as bindable.
I'm getting the following warning when the code runs. The
employeeElements are rendered. But I don't like not undertanding
why the warning is being posted. Or want this to come back and bite
me later...
Here is the warning:
warning: unable to bind to property 'PersonUUID' on class 'Object'
(class is not an IEventDispatcher)
warning: unable to bind to property 'FullName' on class 'Object'
(class is not an IEventDispatcher)
warning: unable to bind to property 'Manager' on class 'Object'
(class is not an IEventDispatcher)
warning: unable to bind to property 'PersonID' on class 'Object'
(class is not an IEventDispatcher)
warning: unable to bind to property 'asgUUID' on class 'Object'
(class is not an IEventDispatcher)
warning: unable to bind to property 'JobTitle' on class 'Object'
(class is not an IEventDispatcher)
repeating for each instance of the component within the repeater.
I double/triple checked that everything was declared as bindable
within the custom component as well as the collection array. I
imported IEventDispatcher into the custom component, but that didn't
do anything.
Any suggestions?
PS: using Flex 2.0.1 and this code is within a module.
Thanks,
Shelley Browning
Intermountain Healthcare