Re: [flexcoders] cfc do not understand cairngorm VO?

2007-12-05 Thread Muzak
If you're using FlexBuilder, install the ColdFusion Extensions for Flex Builder 
(they're in the Flex Builder install dir).
I've mentioned this yesterday.

With the CF extensions installed, all you have to do is right click a cfc or as 
VO and you're done.

Your cfc is missing some required stuff by the way..

Just use the CF wizards.. saves time and hair ;-)

regards,
Muzak

- Original Message - 
From: "Mark Shen" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, December 05, 2007 3:08 PM
Subject: [flexcoders] cfc do not understand cairngorm VO?


>I have built a cfc vo class and flex vo class
>
> PersonVO.as
>
> package com.abc.CESF.Bursary.vo
> {
> import com.adobe.cairngorm.vo.IValueObject;
>
> [RemoteClass(alias="Bursary.cfcs.PersonVO")]
>
> public class PersonVO implements IValueObject
> {
> public var firstname:String = "";
> public var lastname:String = "";
> public var sid:String= "";
>
> public function PersonVO(){
>
> this.firstname = "";
> this.lastname = "";
> this.sid = "";
> }
>
> }
> }
> PersonVO.cfc
>
>  output="false">
>
> 
> 
> 
>
> 
>
> I have a function in cfc.it is here
>
>  output="false" returntype="boolean">
> 
>
> 
> INSERT INTO person_info (fname,
> lname,
> sid)
> VALUES('#personVO.firstname#',
> '#tpersonVO.lastname#',
> '#personVO.sid#')
> 
>
> 
>
> 
>
> but I get the error when I pass flex vo to the cfc function.I am not sure how 
> to make flex vo and cfc vo match.the error message 
> is here
>
> RPC Fault faultString="The argument PERSONVO passed to function addPerson() 
> is not of type PersonVO." 
> faultCode="Server.Processing" faultDetail="If the component name is specified 
> as a type of this argument, the reason for this 
> error might be that a definition file for such component cannot be found or 
> is not accessible."]
>
> Please help me.Thanks
>
> Mark



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] cfc do not understand cairngorm VO?

2007-12-05 Thread Mark Shen
I have built a cfc vo class and flex vo class

PersonVO.as

package com.abc.CESF.Bursary.vo
{
import com.adobe.cairngorm.vo.IValueObject;

[RemoteClass(alias="Bursary.cfcs.PersonVO")]

public class PersonVO implements IValueObject
{
public var firstname:String = "";
public var lastname:String = "";
public var sid:String= "";

public function PersonVO(){

this.firstname = "";
this.lastname = "";
this.sid = "";
}

}
}
PersonVO.cfc





 



I have a function in cfc.it is here





INSERT INTO person_info (fname,
lname, 
sid) 
VALUES('#personVO.firstname#', 
'#tpersonVO.lastname#', 
'#personVO.sid#')






but I get the error when I pass flex vo to the cfc function.I am not sure how 
to make flex vo and cfc vo match.the error message is here

RPC Fault faultString="The argument PERSONVO passed to function addPerson() is 
not of type PersonVO." faultCode="Server.Processing" faultDetail="If the 
component name is specified as a type of this argument, the reason for this 
error might be that a definition file for such component cannot be found or is 
not accessible."]

Please help me.Thanks

Mark


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ