in AMFPHP 1.9 you need to include the $_explicitType variable with every VO object you send from the server. Not sure how this works in other languages, but you may want to look into it.

- Kevin


On Mar 21, 2007, at 9:42 AM, aicfan4 wrote:

I have two Value Objects: a simple VO and a VO that contains the first
VO in it. For example:

--- SimpleVO ---

...
[RemoteClass(alias="test.SimpleVO")]
public class SimpleVO {

public var id:int;

public var data:String;

}

=== SimpleVO ===

--- ComplexVO ---

...
[RemoteClass(alias="test.ComplexVO")]
public class ComplexVO {

public var id:int;

public var simple:SimpleVO;

public var otherdata:String;

...

}

=== ComplexVO ===

I'm successfully using a RemoteObject to retrieve the ComplexVO from
my server and I can read the id and otherdata, etc. properties of the
ComplexVO, but I'm getting empty data when trying to read the
properties of the SimpleVO inside of the ComplexVO.

My DAO class isn't doing anything tricky.

Is there something else I need to be doing in order for the
serialization back to my ActionScript classes to work properly?




Reply via email to