Simon,

 

            Hi I am using the Cairngorm framework.  My problem is not in finding a value object in the code as much as getting an array of object back form the server.  But thanks for the information.

 

Jeff

 

 


From: Simon Fifield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 10:00 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Remote object that returns an array of objects

 

Hi Jeff,

 

You don't mention if you are using the Cairngorm framework or not, but I do and I also use ValueObjects. I took the ViewHelper/ViewLocator pattern and created a ValueObject (or Model) Pattern so that finding ValueObjects from anywhere in your app is as easy as the ViewHelper pattern.

 

If I understand your question correctly its the same thing that I do - wrapping a single array of VOs within a VO. Not be a master of programming patterns and methodologies, I too would be interested in knowing if this is a good solution for our situations.

 

Regards,

Simon Fifield

 

-----Original Message-----
From: Jeff Krueger [mailto:[EMAIL PROTECTED]
Sent: 05 April 2005 16:47
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote object that returns an array of objects

All,

 

            I have a method on my app server called getAllUser() that returns UserVO[].  When I get that back in flex as an Array the items inside the array are of type object, instead of the actionScript UserVO that is associated with that java type being returned.  My work around for this is to create a UserArrayVO class on both sides (App Server and Flex) and in that class is just one variable that is of type UserVO[] on the server and Array on flex and then I get back the correct classes in flex.  So my question is, is this the way to do something like this?  Obviously flex knows how to handle the objects when it is within another class, just not when it is an array of them coming back.

 

Thanks

 

Jeff

 



Yahoo! Groups Links

Reply via email to