A workaround that I had to do was create a new array and push in each
of the indexes of the ValueObject array. This created a second array
of plain vanilla objects. I'm not happy with this solution, but I'm
baffled...

--- In [email protected], "sufibaba" <[EMAIL PROTECTED]> wrote:
>
> 
> I am using the PhoneCairngorm structure  from Benoit and have modified
> the backend to use a Database instead of the XML datafile.
> 
> I am experiencing the same combobox  highlighting problem. The result
> ArrayCollection is Piped into a comboBox.  The labels are all correctly
> displayed in the box, however, when I scroll over the items, no
> highlight is shown.
> 
> An interesting thing is that when I use Benoit's phone result dataset to
> populate a comboBox, it works properly.
> 
> Does anyone have insight into this very perplexing problem?
> 
> P.S.  This problem is not only with the combobox,   list controls is
> doing the same thing with the same problem dataset.
> 
> Cheers,
> 
> Tim
> 
> 
> 
> 
> --- In [email protected], "sof4real03" <soubraham2@> wrote:
> >
> > Can the dataprovider for combobox understand an array of specific
> > value objects or does it need to be a plain vanilla object or string?
> >
> >
> >
> > --- In [email protected], "sof4real03" soubraham2@ wrote:
> > >
> > > I'm returning a native 1 dimensional array of ValueObjects from a
> java
> > > class. The Value Object returned in the array has the following
> > > properties (AvtCategory:Object, value:String, code:String). I then
> > > databind the array to the dataprovider of the combobox specifying
> the
> > > label and data files to use. It populates the combobox, but when I
> > > mouseOver items in the dropdown it doesn't highlight the item. Any
> > > reason why that would be happening?
> > >
> > > Code below:
> > >
> > > <mx:RemoteObject id="avtFacade" destination="lsAvt"
> > > result="resultHandler( event )"
> > > fault="faultHandler( event )"
> > > showBusyCursor="true"/>
> > > <mx:Script>
> > > <![CDATA[
> > > import com.name.services.avt.AvtCategoryValue;
> > > import mx.collections.ArrayCollection;
> > > import com.name.services.avt.AvtItemValue;
> > > import mx.controls.*;
> > > import mx.rpc.events.*;
> > >
> > > [Bindable]
> > > public var stateAvts:Array;
> > >
> > > public function testAvt():void
> > > {
> > > var stateCategory:AvtCategoryValue = new AvtCategoryValue();
> > > stateCategory.avtCategoryCode = "STATE";
> > > avtFacade.getAvtItems(stateCategory);
> > > }
> > >
> > > public function resultHandler(event:ResultEvent):void
> > > {
> > > stateAvts = event.result as Array;
> > > }
> > >
> > > public function faultHandler(event:FaultEvent):void
> > > {
> > > Alert.show(event.fault.faultstring, "Error");
> > > }
> > > ]]>
> > > </mx:Script>
> > >
> > > <mx:ComboBox id="state" dataProvider="{stateAvts}"
> > > labelField="value" data="code"/>
> > >
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to