Skip navigation
Currently Being Moderated

Problem reading HashMap<Integer, ArrayList<SomeObject>> in Flex 3

Mar 21, 2011 9:09 AM

I am using flex 3 and BlazeDS to get the results from a Java Method. The return type of the java method is HashMap<Integer, ArrayList<SomeObject>> . In Flex, I am trying to get all the elements of the event.result object in the following manner.

 

                for(var key:* in event.result) {
                     Alert.show(key,"Key");
                     var value:* = event.result[key];
                     Alert.show(value,"Values");
                     pdac = value as ArrayCollection;
                }

 

The Keys are getting printed correctly. But the values are coming out to be null. How do I go about accessing the ArrayList? I checked on the Java side and it is indeed printing the arraylist.

 

TIA,

mvenk..

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points