CFC issues

2004-05-12 Thread Cutter (CF-Talk)
Please forgive me for stupid questions, it has been quite awhile since I have been able to work with CFC's. I have a getID() method: cffunction name=getID access=public output=true returntype=numeric cfreturn instance.ID /cffunction I first create my object: cfinvoke

RE: CFC issues

2004-05-12 Thread Dave Carabetta
Please forgive me for stupid questions, it has been quite awhile since I have been able to work with CFC's. I have a getID() method: cffunction name=getID access=public output=true returntype=numeric cfreturn instance.ID /cffunction I first create my object: cfinvoke

Re: CFC issues

2004-05-12 Thread Bryan Stevenson
Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Cutter (CF-Talk) To: CF-Talk Sent: Wednesday, May 12, 2004 10:25 AM Subject: CFC issues

Re: CFC issues

2004-05-12 Thread Cutter (CF-Talk)
- Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Cutter (CF-Talk) To: CF-Talk Sent: Wednesday, May 12, 2004 10:25 AM Subject: CFC issues Please forgive me for stupid questions, it has been quite awhile

Re: CFC issues

2004-05-12 Thread Doug James
-vancouverisland.com - Original Message - From: Cutter (CF-Talk) To: CF-Talk Sent: Wednesday, May 12, 2004 10:25 AM Subject: CFC issues Please forgive me for stupid questions, it has been quite awhile since I have been able to work with CFC's. I have a getID() method: cffunction name=getID access=public

RE: CFC issues

2004-05-12 Thread Raymond Camden
Just as an aside, yes, the normal use of cfinvoke is such that it creates a new instance each time. However, you can also pass an instance of a CFC to cfinvoke, and in that case the existing CFC will be used. (Of course, you still have to create the CFC beforehand.) [Todays Threads] [This

UDF in CFC's - was: CFC Issues....

2003-08-26 Thread Paul Spitzer
, 2003 2:33 PM To: CF-Talk Subject: RE: CFC Issues My blog entry talked about creating a UDF _inside_ a method, this is NOT the same as creating a UDF in a CFC. For example: cfcomponent cfscript function boring() { return now(); } /cfscript cffunction name

RE: UDF in CFC's - was: CFC Issues....

2003-08-26 Thread Tony Weeg
, 2003 10:06 AM To: CF-Talk Subject: UDF in CFC's - was: CFC Issues cfscript function boring() { return now(); } /cfscript wow!.. I didn't know you could do that. Is there *any* way to make them private? I noticed that the component documentation says all the arguments

RE: UDF in CFC's - was: CFC Issues....

2003-08-26 Thread Paul Spitzer
with it. -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 10:18 PM To: CF-Talk Subject: Re: UDF in CFC's - was: CFC Issues On Wednesday, Aug 20, 2003, at 17:53 US/Pacific, Paul Spitzer wrote: cfscript function boring

UDF in CFC's - was: CFC Issues....

2003-08-26 Thread Paul Spitzer
, 2003 2:33 PM To: CF-Talk Subject: RE: CFC Issues My blog entry talked about creating a UDF _inside_ a method, this is NOT the same as creating a UDF in a CFC. For example: cfcomponent cfscript function boring() { return now(); } /cfscript cffunction name

RE: UDF in CFC's - was: CFC Issues....

2003-08-26 Thread Paul Spitzer
with it. -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 10:18 PM To: CF-Talk Subject: Re: UDF in CFC's - was: CFC Issues On Wednesday, Aug 20, 2003, at 17:53 US/Pacific, Paul Spitzer wrote: cfscript function boring

RE: UDF in CFC's - was: CFC Issues....

2003-08-26 Thread Andy Ousterhout
[mailto:[EMAIL PROTECTED] Sent: None To: CF-Talk Subject: UDF in CFC's - was: CFC Issues cfscript function boring() { return now(); } /cfscript wow!.. I didn't know you could do that. Is there *any* way to make them private? I noticed that the component documentation says

Re: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Sean A Corfield
On Wednesday, Aug 20, 2003, at 17:53 US/Pacific, Paul Spitzer wrote: cfscript function boring() { return now(); } /cfscript wow!.. I didn't know you could do that. Why would anyone want to? You can't set the access type, you can't specify the return type, you can't specify

Re: CFC Issues....

2003-08-21 Thread Oliver Tupman
Bryan F. Hogan wrote: So the following should work? [copy] [paste] [run] Bryan, it worked fine at my end. MX gave no problems with it. I've components coming out of my ears and it works fine. You can even call a parent method that you've overridden, though its undocumented and therefore

Re: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Oliver Tupman
Paul Spitzer wrote: Paul (wishing I could use script syntax for everything) Join the club! wow!.. I didn't know you could do that. Is there *any* way to make them private? Unfortunately not, neither is there a way to stop them producing output like through the CFML cffunction

RE: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Raymond Camden
wow!.. I didn't know you could do that. Is there *any* way to make them private? I noticed that the component documentation says all the arguments are required, is it possible to declare which arguments are required and which ones aren't? What else can you do with this... playing with

RE: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Raymond Camden
-Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 11:18 PM To: CF-Talk Subject: Re: UDF in CFC's - was: CFC Issues On Wednesday, Aug 20, 2003, at 17:53 US/Pacific, Paul Spitzer wrote: cfscript function boring() { return now

RE: CFC Issues....

2003-08-21 Thread Raymond Camden
, and a powerful ally it is. - Yoda -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 4:44 PM To: CF-Talk Subject: Re: CFC Issues So the following should work? cfcomponent cffunction name=checkEmail returntrype=boolean

RE: CFC Issues....

2003-08-21 Thread Adam Wayne Lehman
[mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 6:44 PM To: CF-Talk Subject: Re: CFC Issues So the following should work? cfcomponent cffunction name=checkEmail returntrype=boolean cfargument name=emailAddress type=string required=true cfif Len

RE: CFC Issues....

2003-08-21 Thread Bryan F. Hogan
Yes to all your questions. -Original Message- From: Oliver Tupman [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 4:43 AM To: CF-Talk Subject: Re: CFC Issues Bryan F. Hogan wrote: So the following should work? [copy] [paste] [run] Bryan, it worked fine at my end. MX

RE: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Raymond Camden
Unfortunately not, neither is there a way to stop them producing output like through the CFML cffunction attribute output=false. I was thinking of writing some sort of preprocessor that would convert a cfscript-like syntax such as Incorrect. Well not exactly. A tag based UDF allows

RE: CFC Issues....

2003-08-21 Thread Raymond Camden
I've components coming out of my ears and it works fine. You can even call a parent method that you've overridden, though its undocumented and therefore may not work in future versions (and a bit processing-intensive) Err, you mean with super.foo()? This is documented and a feature of

RE: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Mike Nimer
cfreturn name /cffunction cfoutput#getFoo()#/cfoutput nimer -Original Message- From: Massimo Foti [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:55 AM To: CF-Talk Subject: Re: UDF in CFC's - was: CFC Issues cfscript function boring() { return

RE: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Paul Spitzer
component documentation You said components above I was just referring to the cfcexplorer. check the size of the arguments array nice.. didn't think of that. -Original Message- wow!.. I didn't know you could do that. Is there *any* way to make them private? I noticed

Re: CFC Issues....

2003-08-21 Thread Oliver Tupman
Raymond Camden wrote: Err, you mean with super.foo()? This is documented and a feature of CF MX 6.1. Doh! Managed to miss that one! Makes my life easier! I was missing calling the parent component. I assume that this means that 'super' is now a reserved word? -- Oliver Tupman Key

RE: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Paul Spitzer
thinking of writing some sort of preprocessor that would convert a cfscript-like syntax that's a great idea! New project! -Original Message- From: Oliver Tupman [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 1:39 AM To: CF-Talk Subject: Re: UDF in CFC's - was: CFC

Re: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Massimo Foti
cfscript function boring() { return now(); } /cfscript wow!.. I didn't know you could do that. Why would anyone want to? You can't set the access type, you can't specify the return type, you can't specify any argument types. cffunction offers a lot of benefits, but many still like a

RE: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Paul Spitzer
with it. -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 10:18 PM To: CF-Talk Subject: Re: UDF in CFC's - was: CFC Issues On Wednesday, Aug 20, 2003, at 17:53 US/Pacific, Paul Spitzer wrote: cfscript function boring

RE: CFC Issues....

2003-08-21 Thread Tony Weeg
[mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 10:44 AM To: CF-Talk Subject: RE: CFC Issues It should. And to be certain I threw it on my server. It does. The problem you and Tony are experiencing is definitely not in code. Adam Wayne Lehman Web Systems Developer Johns Hopkins

Re: CFC Issues....

2003-08-21 Thread Sean A Corfield
On Thursday, Aug 21, 2003, at 01:43 US/Pacific, Oliver Tupman wrote: You can even call a parent method that you've overridden, though its undocumented and therefore may not work in future versions (and a bit processing-intensive). Note: in CFMX 6.1 there is a supported, documented way to

RE: CFC Issues....

2003-08-21 Thread Bryan F. Hogan
Yes -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 12:11 PM To: CF-Talk Subject: RE: CFC Issues I have not a problem, mine was my own dumb arse not coding right, im fixed wanna see what I figgered out? tony weeg uncertified

Re: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Oliver Tupman
Paul Spitzer wrote: thinking of writing some sort of preprocessor that would convert a cfscript-like syntax that's a great idea! New project! An hour or so after work and it appears to work with a UDF'd page... Next step, components. Maybe not, need to cycle home before it gets dark! If

Re: UDF in CFC's - was: CFC Issues....

2003-08-21 Thread Massimo, Tiziana e Federica
Another great reason for CFMX6.1, vars still need to be at the top but they can now be inside a CFSCRIPT block. Hey, I wasn't aware of this, many thanks for the tip! I just tested and it really make my day :-) Massimo Foti Certified Dreamweaver MX Developer

CFC Issues....

2003-08-20 Thread Tony Weeg
what could this possibly mean? the code works perfect outside of the cfc, but now it doesn't inside the cfc? Unable to complete CFML to Java translation. Error information unsupported statement: class coldfusion.compiler.ASTfunctionDefinition The error occurred in

Re: CFC Issues....

2003-08-20 Thread Sean A Corfield
Show us yer code Weeg!! :) On Wednesday, Aug 20, 2003, at 10:30 US/Pacific, Tony Weeg wrote: what could this possibly mean? the code works perfect outside of the cfc, but now it doesn't inside the cfc? Unable to complete CFML to Java translation. Error information unsupported

RE: CFC Issues....

2003-08-20 Thread Bryan F. Hogan
PROTECTED] Sent: Wednesday, August 20, 2003 3:50 PM To: CF-Talk Subject: Re: CFC Issues Show us yer code Weeg!! :) On Wednesday, Aug 20, 2003, at 10:30 US/Pacific, Tony Weeg wrote: what could this possibly mean? the code works perfect outside of the cfc, but now it doesn't inside

RE: CFC Issues....

2003-08-20 Thread Raymond Camden
/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 3:10 PM To: CF-Talk Subject: RE: CFC Issues I have always recieved this same problem while

Re: CFC Issues....

2003-08-20 Thread Bryan F. Hogan
a cfc and trying to use it in the same cfc I get the exact same error that Tony gets with any UDF. - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 5:32 PM Subject: RE: CFC Issues My blog entry talked about

UDF in CFC's - was: CFC Issues....

2003-08-20 Thread Paul Spitzer
, 2003 2:33 PM To: CF-Talk Subject: RE: CFC Issues My blog entry talked about creating a UDF _inside_ a method, this is NOT the same as creating a UDF in a CFC. For example: cfcomponent cfscript function boring() { return now(); } /cfscript cffunction name