I've exposed a Spring bean to my Flex app via BlazeDS. In my Java code I return strongly typed lists. e.g.
public List<Folder> getFolders(String path) {
return dao.getFolders(path);
}
The Flex app receives the data as an ArrayCollection of AS3 Object instances - i.e. not as a ArrayCollection of Folders which is what I want. I've annotated my Flex class as follows:
package myproject.vo {
import com.adobe.cairngorm.vo.IValueObject;
import mx.collections.ArrayCollection;
[Bindable]
[RemoteClass(alias="myproject.vo.Folder")]
public class Folder extends PersistentObject implements IValueObject {
public function Folder() {}
}
}
I checked that I had getters/setters on my Java Folder class to match the properties in my Flex Folder class. Any ideas?