Throw a cast in each one: personID="{YourClassThatHasPersonIDAndOtherDesiredProperties( employee.currentItem).PersonID}"
It's giving you that warning because 'employee.currentItem' is a POO (plain ol' Object). I'm doing the same thing on current project, and instead of setting all those properties, my component in the repeater has a VO that it binds to, internally, so I do something like: <mx:Repeater id="employee" dataProvider="{directReportCollection}"> <v:employeeElement itemVO="{ItemVO(employee.currentIndex)}" ... /> </mx:Repeater> As long as directReportCollection is collection of ItemVO's (or whatever), you're golden. Then, your empEl can get all those properties off ItemVO, which has a nice, tidy interface defined... ;) Scott On 2/15/07, shelleybrowning <[EMAIL PROTECTED]> wrote:
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
-- : : ) Scott