Action Script 3/BlazeDS/Flex 3/Java

oplin

Gawd
Joined
Jan 9, 2002
Messages
831
Just wondering if someone knows the best way to send a ordered map from java to a flex application through blazeds (newest version) so it retains it's order. Right now it seems liek it orders it on keys alphabetically (they are strings). I could just be using a wrong map interface or something too. If any one has some documentation or best practice on it that would be greatly appreciated.
 
I honestly have no idea about flex or blazeds but in java you could use a LinkedHashMap to maintain insertion order in your map. Sorry if this you knew this already :)
 
The Map interface gets translated to actionscrip 3 via a Object, which i believe hashes it's properties so it loses it there. Was hoping someone had a cool way to throw the map into a array or some other kind of collection or helper object in actionscript. Looks like it's impossible without modifying the blazeds code.

I just formed all my maps into structured objects and passed through an array which kept the order.
 
Back
Top