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
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
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
-
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
-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
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
, 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
, 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
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
, 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
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
[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
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
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
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
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
-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
, 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
[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
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
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
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
/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
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
, 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
39 matches
Mail list logo