Hi,
I have a Map in the server side that has typed objects as keys. I want it to convert to a Dictionary in the Flex code with those typed objects (or untyped objects if necessary). For now the entire map is converted to an untyped object having the properties as the 'toString' of the keys.
Is there a way to get it to convert to a Dictionary? Why isn't that the default behavior?
Thanks,
Eyal
java.util.Map to flash.utils.DictionaryI also have the same question.?What is the best way to preserve java.util.Map keys as objects??I know I can parse the string representation, but is there a better way to do this?
Thanks,
Ron
java.util.Map to flash.utils.DictionaryRon,
There's no way to do it with the current AMF protocol since it doesn't support serialization of AS Dictionary. You can write your own code to simulate the serialization but I couldn't find anything like that.
Eyal
No comments:
Post a Comment