Here is an example of AS VO and CF VO in current Flex
2 alpha.
To solve the uppercase problem, i've only added the
corresponding setter in the AS VO (only used during deserialization
process).
(better approach than defining properties in
uppercase using getter/setter to access them, as in UserManager CFAdapter
sample app, see User.as)
SomeVO.as:
package com.mycompany.myapp.model {
import flash.net.*;
public class SomeVO {
public var text:String;
public var title:String;
public function SomeVO() {
registerClassAlias("com.mycompany.myapp.model.SomeVO", SomeVO);
text =
"";
title = "";
}
public function set TEXT(text:String):Void {
this.text = text;
}
public function set TITLE(title:String):Void {
this.title = title;
}
}
}
title = "";
}
public function set TEXT(text:String):Void {
this.text = text;
}
public function set TITLE(title:String):Void {
this.title = title;
}
}
}
SomeVO.cfc:
<cfcomponent>
<cfproperty name="text" type="String">
<cfproperty name="title" type="String">
<cffunction
name="init">
<cfscript>
this.text = "";
this.title = "";
</cfscript>
<cfreturn this />
</cffunction>
<cfscript>
this.text = "";
this.title = "";
</cfscript>
<cfreturn this />
</cffunction>
</cfcomponent>
Benoit Hediard
De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Kurt Wiersma
Envoyé : mardi 29 novembre 2005 02:07
À : [email protected]
Objet : [coldspring-dev] Ping.
--Kurt
On 11/28/05, Chris
Scott <[EMAIL PROTECTED]
> wrote:
Welcome to the ColdSpring list Scott!
We've been looking at / thinking about the CFAdapter and how it will
fit into our remoting plans. I think we will be going in the
direction of offering 2 types if RemitingProxyFactories, one relying
on the CFadapter, one using the mapping utility class for legacy /
non-flex apps. One thing is certain, flex developers is a key target
audience for ColdSpring.
Chris
On Nov 28, 2005, at 7:05 AM, Scott Barnes wrote:
> Sorry, wasn't sure if my email-mic-test was working.
>
> BTW: The new CFAdapter should negate the need to resolve Mappings from
> ASObject to CFC, it should do all that for you?
>
> ie:
> com.mossyblog.cfc.testVO returned out *should* resolve to
> com.mossyblog.as.testVO auto-magically instead of having to do
> ASObject.setType(), ASObject.put() approach (ie FLEX 1.5 approach).
>
>
>
> On 11/28/05, Scott Barnes <[EMAIL PROTECTED]> wrote:
>> Ping.
>>
>> --
>> Regards,
>> Scott Barnes
>> http://www.mossyblog.com
>>
>>
>
>
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
>
