My favorites
▼
|
Sign in
flexxb
FlexXB - an annotation based serializer for Flex and Air applications with built-in xml support
Project Home
Downloads
Wiki
Issues
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
49
attachment: Arraylist_Serialization_fixes.patch
(1.1 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: FlexXB/FlexXB/src/main/flex/com/googlecode/flexxb/xml/serializer/XmlArraySerializer.as
===================================================================
--- FlexXB/FlexXB/src/main/flex/com/googlecode/flexxb/xml/serializer/XmlArraySerializer.as (revision 718)
+++ FlexXB/FlexXB/src/main/flex/com/googlecode/flexxb/xml/serializer/XmlArraySerializer.as (working copy)
@@ -53,6 +53,9 @@
var result : XML = <xml />;
var xmlArray : XmlArray = annotation as XmlArray;
var child : XML;
+ //ArrayLists are not iterable so set the member to its source
+ if(object is ArrayList) object = object.source;
+
for each (var member : Object in object) {
if(xmlArray.isIDRef){
child = XML(serializer.getObjectId(member));
@@ -166,6 +169,8 @@
(result as Array).push.apply(null, members);
} else if (result is ArrayCollection) {
ArrayCollection(result).source = members;
+ } else if (result is ArrayList) {
+ ArrayList(result).source = members;
} else if (result is ListCollectionView) {
ListCollectionView(result).list = new ArrayList(members);
}else if(isVector(result)){
Powered by
Google Project Hosting