<< Bangalore Flex User Group

Discussion Area

ask questions, discuss topics, solve problems

Discussion Home | About | Threads By Date | Search

Populate a flex combo box with a java arrayList


Thread posted 11/01/11 by Sathya Kishore
6,024 views, 0 comments.

Title
Populate a flex combo box with a java arrayList

Content

Hi, i am a java programer and newbie to flex, can anyone help me out though a code example how to display a java array list in to flex comb box

for example:

My java arraylist as follows

List li=new ArrayList();

li.add("MGR");

li.add("STRB");

Now in my servlet class i write out.println(li);

Iam accessign the servlet through <HttpService> tag in flex mxml

My question is how to display this list in the flex combo box, i tried using the dataprovider but yet the list doesnt get populated,

can some one help me with code, how to first call the java list in the script.as file, and then how to populate the same in to the combo box

Thanks in advance

Regds

Sathya