Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-26 Thread Tom Chiverton
On Thursday 26 Jun 2008, holmgren.eric wrote: That was the ticket! For some reason the AS to CF wizard in FB3 puts all the properties in the variables scope. Not the one I've got here, unless I choose a private property scope. I also don't use the get/set generation either. It's just a VO. --

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread holmgren.eric
Tom, The methods I'm referring to are the getter/setter and init methods in the cfc. Say I pass a vo.TestVO AS class with the properties value1, value2, etc to ColdFusion via remoting. When I dump the arguments variable scope in the cfc called by the remote object, the vo.TestVO object exists as

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread holmgren.eric
The Flex and ColdFusion code is here: http://coldfusion.pastebin.com/m640b8baa Sending a typed object from CF to Flex works as it should. Sending from Flex to CF strips off all of the properties and only assigns the methods present in the aliased cfc.

RE: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread Battershall, Jeff
: Wednesday, June 25, 2008 3:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problems passing value objects between Flex and CF The Flex and ColdFusion code is here: http://coldfusion.pastebin.com/m640b8baa Sending a typed object from CF to Flex works as it should. Sending from Flex to CF

Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread Jeffry Houser
Have you tried setting the type to just TestVO in the setMyTestVO ? Also it won't hurt if you add an alias tag to the CFC. I believe this is the correct syntax: cfcomponent name=components.test.TestVO output=false alias=vo.TestVO holmgren.eric wrote: The Flex and ColdFusion code is here:

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread holmgren.eric
Jeff, That was the ticket! For some reason the AS to CF wizard in FB3 puts all the properties in the variables scope. Thanks, Eric

Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread Douglas Knudsen
this is ok if you are not trying to cfdump a instance of it. You should be able to cfoutput a getPropertyName(). Think about one of the points of using mutator/accessor pairs. DK On Wed, Jun 25, 2008 at 10:01 PM, holmgren.eric [EMAIL PROTECTED] wrote: Jeff, That was the ticket! For some

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread holmgren.eric
I guess I may be a little confused about how the aliases are supposed to work then. Take the following example: In flex builder I have a project named Test with the following hierarchy that's set to run from wwwroot/Test-debug/ on the local CF server ... + Test + bin-debug +

Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread Jeffry Houser
Was there a problem you were having with setting the aliases that you'd like to share? In the CFC your alias will be vo.VO In the AS file the alias will be components.VO Keep the paths case sensitive. holmgren.eric wrote: I guess I may be a little confused about how the aliases are

Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread Douglas Knudsen
The AS file's remoteobject metadata should have alias point to the CFC using full dot-path notation. The alias attribute on the CFC is not required, but would be this same path. You don't specify the path to your AS object anywhere, would kind of defeat a few things that. would, eh?

Re: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread Jeffry Houser
Server problems that I can't track down unfortunately. This is the second Failure today. : grumbles: I'll spare the list from all the gory details. But, thanks for the link anyway. ;) Douglas Knudsen wrote: The AS file's remoteobject metadata should have alias point to the CFC using

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-24 Thread holmgren.eric
I have my VO's coming back fine from CF to Flex, but when I try and send them from Flex to CF, I only get a VO with methods and no properties.

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-17 Thread holmgren.eric
Problem solved: testVO = CreateObject(component, components.test.TestVO); testVO.init(); in TestRO.cfc should have been ... testVO = CreateObject(component, components.test.TestVO).init(); I don't think the alias was being initialized correctly previously. Eric