开发者

Java map to flex object conversion

开发者 https://www.devze.com 2023-03-17 17:20 出处:网络
From java i am sending ordered Map.In flex when i convert that into Object i am loosing the order which i maintained in java.Is there any other way to maintain the order in 开发者_StackOverflow中文版f

From java i am sending ordered Map.In flex when i convert that into Object i am loosing the order which i maintained in java.Is there any other way to maintain the order in 开发者_StackOverflow中文版flex object?

Regards, Siva


Java Maps (including SortedMap / TreeMap) are converted into a generic Object instance which has no notion of ordering:

http://livedocs.adobe.com/blazeds/1/blazeds_devguide/serialize_data_2.html#312520

You could perhaps write a custom Java class (and the equivalent ActionScript class) which contains the original Map and an Array of the keys in the correct order.

0

精彩评论

暂无评论...
验证码 换一张
取 消