From: Douglas Knudsen <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:12:18 AM
Subject: [flexcoders] remote object mapping frustration
Ok, I got this CFC modeling a composite object. Lets say its com.myco.project. user. user has three members: userid a string, address a com.myco.project. adress, and say cars a array of com.myco.project. car . The CFCs work fine in that DAOs do their magik. On the Flex side I have com.myco.project. vo.user, com.myco.project. vo.address, and com.myco.project. car all mapping to the above. sounds good so far, eh? Now, the Flex code kicks a event off that does the remoteobject connection to the CF server requesting a user object. It gets built and according to the debug data I can see at the DOS prompt from CFServer, it is returned to Flex as the proper com.myco.project. car object containing the other objects properly. BUT in the FlexBuilder debugger the returned object is listed as result = mx.utils.ObjectProx y (@5824481) I've been bangin my head for hours on this. I have many
other setups like this working fine, suddenly this one doesn't.
My onresult() has a line like which throws a runtime error about type coercion
foo = event.result as user;
any thoughts?
--
Douglas Knudsen
http://www.cubiclem an.com
this is my signature, like it?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___