Sending Typed Objects to Flex ?
Hi,
i'm tried many things now... On my Localhost (Coldfusion9) it's all working correctly.
But on our live-Server (only Coldfusion 😎 it doens't...
I am develop with Coldfusionbuilder...
My Script is really as simple as possible:
<cfcomponent >
<cfproperty name="firstname" type="string" >
</cfcomponent>
<cfcomponent extends="UserVO" >
<cfproperty name="lastname" type="string" >
</cfcomponent>
<cfcomponent>
<cffunction name="getUser" access="remote" displayname="getUser" output="false" returntype="vo.ComplexUserVO">
<cfset myUser=createObject("component", "vo.ComplexUserVO" ) >
<cfset myUser.firstname = "Nico" >
<cfset myUser.lastname = "Barelmann" >
<cfreturn #myUser#>
</cffunction>
</cfcomponent>
So i have 2 objects with one property in each of them. If i return once the username or the password (itself as a string) it will "arrive" in Flex correctly... But if i give it a concret returntype (that would be nice) Flex says that the "firstname" attribute is null. (lastname is correct)
Problem1: If i set a returntype (in Cf) i've got an error, that the returntype Component can't be found
Provlem2: if i do not set a returntype, just the lastname arrive @ flex...
Any Ideas? Like i said before, on my localmachine both, firstname and lastname, arrive correctly. So i think that the issue lies somewhere between cf8 & 9...
thanks for any help!
Greets, Nico
Ps:
A Coldfusion-Page in the same directory with that code:
<cfset myUser=createObject("component", "vo.COmplexUserVO" ) >
<cfset myUser.firstname = "nico" >
<cfset myUser.lastname = "Barelmann" >
<cfoutput >
#myUser.firstname#
</cfoutput>
.... The Output i correct. (Either firstname or lastname)
