I want to send data to a combobox itemrenderer such that it has both dropdown data and the selectedIndex. Please note that the combobox itemrenderer is part of a List.... So if the data is arraycollection, I am trying to get it mapped correctly using list comprehension....
THE SOLUTION I IMPLEMENTED
Say the combobox data is in an ArrayCollection var d. I created a new ArrayCollection d1 such that d1 items are {d: d, dSelectedIndex: whatever_val_u_determined}
In the list, I set dataProvider = {d1}
In the itemrenderer for the above list items, I set dataProvider = {data.d} and selectedIndex = {data.dSelectedIndex}