[flexcoders] Re: cfc do not understand cairngorm VO?
Please let me know where I can download the latest version CF extensions .Please help me. Mark --- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote: > > 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 > > > > > > > > > > > > > > > > > > > > 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 >
[flexcoders] Re: cfc do not understand cairngorm VO?
I create the PersonVO with the cfc wizard,the error still same. PersonVO.cfc //Initialize the CFC with the default properties values. variables.firstname = ""; variables.lastname = ""; variables.sid = ""; Thanks.Please give me a hit Mark --- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote: > > 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 > > > > > > > > > > > > > > > > > > > > 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 >
[flexcoders] Re: cfc do not understand cairngorm VO?
Hi, Do you think if it is possible to use Object object to take place VO object? and from cfc we can use struct I try VO many dates but why cfc can not accept the flex vo. Thanks Mark --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > try to set the Alias attribute in your component. something like > alias="path.to.my.cfc.PersonVO" > > Also, be sure that the AS3 class maps to the same path defined in the > alias attribute. > > -- > > João Fernandes > > http://www.onflexwithcf.org > http://www.riapt.org >
Re: [flexcoders] Re: cfc do not understand cairngorm VO?
try to set the Alias attribute in your component. something like alias="path.to.my.cfc.PersonVO" Also, be sure that the AS3 class maps to the same path defined in the alias attribute. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org
Re: [flexcoders] Re: cfc do not understand cairngorm VO?
Mark, send me both of your CFC and VO to my email and I'll check why it doesn't work for you. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org
Re: [flexcoders] Re: cfc do not understand cairngorm VO?
On Thursday 06 Dec 2007, markflex2007 wrote: > Do you think if it is possible to use Object object to take place VO > object? and from cfc we can use struct Yes, that'll work, but all the keys will be uppercased, and working with an anonymous Object isn't as intuitive (and if you use Builder you wont get insight for it's properties). -- Tom Chiverton Helping to paradigmatically envisioneer bleeding-edge environments on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/