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/