And the answer is that the cfcomponent tag has to have accessors="true"
On Mon, Aug 23, 2010 at 3:24 PM, Michael Dinowitz
wrote:
> I'm using a component that has a variable of dsn. I set a cfproperty
> tag to get access to the dsn using the implicit getter ability of CF
I'm using a component that has a variable of dsn. I set a cfproperty
tag to get access to the dsn using the implicit getter ability of CF
9.
It fails in all cases giving me a response of:
The method getdsn was not found in component XXX
Is there something simple I'm missing?
Thanks
Sry, that should've read: "In short, variables created via the
cfproperty|property-generated setters (in CF9) are private-to-the-CFC. And
variables in the this scope are public-to-the-CFC."
> In short, variables created via the cfproperty|property-generated
> setters (i
Hi fun and learning,
In short, variables created via the cfproperty|property-generated setters (in
CF9) are private-to-the-CFC.
I recommend reading these docs:
cfproperty|property:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e0b.html
Implicit Get
>> CF 9 changed this significantly. With CF 9, using CFPROPERTY actually
>> creates a public variable in addition to creating documentation. In
>> addition to that, it also "creates" accessors and mutators (setters
>> and getters). It doesn't actually ge
On Tue, Feb 2, 2010 at 11:21 AM, Dave Watts wrote:
> CF 9 changed this significantly. With CF 9, using CFPROPERTY actually
> creates a public variable in addition to creating documentation. In
> addition to that, it also "creates" accessors and mutators (setters
> an
> Can anyone please tell me the difference between cfproperty tag and variables
> defined using this scope. Both are used to define
> CFC properties?
The answer to this is a bit complicated, and version-dependent.
If you're using CF 8 or earlier, the CFPROPERTY tag does noth
Opps.
I used didn't put variables in this instance. I
wanted them to only be part of the cfc.
Steve
-Original Message-
From: DURETTE, STEVEN J (ATTASIAIT)
Sent: Tuesday, February 02, 2010 1:50 PM
To: cf-talk
Subject: RE: difference between cfproperty and variables defined
According to the docs, cfproperty only sets Metadata. I just did this
recently and even though I could set the initial values I had trouble
changing them and using them just inside the cfc.
I resorted to Notice that there is no var
in there. If the variables are outside of a function, you
Hi All,
Can anyone please tell me the difference between cfproperty tag and variables
defined using this scope. Both are used to define CFC properties?
~|
Want to reach the ColdFusion community with something they want? Let
use
cfproperty to document it..
G!
On Sun, Feb 15, 2009 at 7:14 PM, Mike Soultanian wrote:
>
> Brad Wood wrote:
> > On the topic of cfproperty-- don't write them off completely. :)
> >
> > They look like they will play a big part in CF 9's ORM features.
>
Brad Wood wrote:
> On the topic of cfproperty-- don't write them off completely. :)
>
> They look like they will play a big part in CF 9's ORM features.
> Additionally, some frameworks like ColdBox use cfproperty tags' metadata to
> autowire dependencies into you
On the topic of cfproperty-- don't write them off completely. :)
They look like they will play a big part in CF 9's ORM features.
Additionally, some frameworks like ColdBox use cfproperty tags' metadata to
autowire dependencies into your components.
Just food for thou
Dave Watts wrote:
> CFPROPERTY is really only useful for web services. For most CFCs, you
> don't want to document properties because those properties aren't
> public; the use of public properties breaks the concept of
> encapsulation.
Ahhh... cool. Than
> Does anyone use cfproperty? I've been doing a lot of reading on CFCs
> and I've noticed that nobody uses that tag to document their CFCs. Is
> it just easy enough to look at the init's arguments to figure out the
> properties for a class? Just curious..
CFPROPERT
IIRC... It is for self documentation and for constructing the WSDL for web
services. You can skip it entirely for a regular CFC as it has no effect on
the the functionality of the CFC.
G!
On Sat, Feb 14, 2009 at 9:59 PM, Mike Soultanian wrote:
>
> Does anyone use cfproperty? I've
Does anyone use cfproperty? I've been doing a lot of reading on CFCs
and I've noticed that nobody uses that tag to document their CFCs. Is
it just easy enough to look at the init's arguments to figure out the
properties for a class? Just curious.
>> It affects WSDL generation without affecting the actual functionality of
the CFC. And WSDL is just
documentation, for SOAP clients instead of people.
Good to know. I was wondering why, given the self documenting nature of
CFC's, that CFProperty warranted tag status.
Dave, you ar
> Doesn't CFPROPERTY do something for web-services? Help with
> the stub generation or something?
>
> That's the only reason besides documentation that I can come
> up with. And it might still just be documentation.
That is, in fact, still just documentation. I
On Thu, Sep 11, 2008 at 10:10 AM, Dave Watts <[EMAIL PROTECTED]> wrote:
>> just to clarify, will any variables defined with the
>> cfproperty tag automatically be private to the
>> cfcomponent,just like function arguments are private just to
>> that function?
>
ok got ya, thanks dave
richard
>> just to clarify, will any variables defined with the
>> cfproperty tag automatically be private to the
>> cfcomponent,just like function arguments are private just to
>> that function?
>
>No. The CFPROPERTY tag doesn't defi
> just to clarify, will any variables defined with the
> cfproperty tag automatically be private to the
> cfcomponent,just like function arguments are private just to
> that function?
No. The CFPROPERTY tag doesn't define variables, it documents them. If you
have a CFPROPERTY
thanks alot dave,
just to clarify, will any variables defined with the cfproperty tag
automatically be private to the cfcomponent,just like function arguments are
private just to that function?
thanks
>> we are creating beans and have noticed in tutorials that some
>
>The CF
properties using the
> cfproperty tag
>
> is there are difference or is this just the same way of doing
> the same thing. if so then is there a preferred method and why?
The CFPROPERTY tag doesn't actually create properties. It simply provides
documentation for properties, so tha
.
however if we build up the cfc through the cfeclipse cfc builder then
it creates all variables as properties using the cfproperty tag
is there are difference or is this just the same way of doing the same
thing. if so then is there a preferred method and why?
thanks very much
richard
-
From: Ian Skinner
To: CF-Talk
Sent: Fri Jul 28 20:19:56 2006
Subject: RE: cfproperty vs. setting variables for in a cfc
Don't you mean
:-)
No, this is in the top of the component, not in a function.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Don't you mean
:-)
No, this is in the top of the component, not in a function.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-
| 1 | |
- Binary Soduko
| | |
-
"C code. C code run. Run code run. Please!"
- Cynthia Du
rily those expressed by Reed Exhibitions."
Visit our website at http://www.reedexpo.com
-Original Message-
From: Richard Kroll
To: CF-Talk
Sent: Fri Jul 28 19:24:16 2006
Subject: RE: cfproperty vs. setting variables for in a cfc
cfproperty is used in webservice calls, and if your CFC
cfproperty is used in webservice calls, and if your CFC is not used for
that, then the only benefit AFAIK is for introspection.
HTH,
Rich
-Original Message-
From: Ken Fused [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 1:53 PM
To: CF-Talk
Subject: cfproperty vs. setting
ed [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 1:53 PM
To: CF-Talk
Subject: cfproperty vs. setting variables for in a cfc
In creating a CFC, what is the difference between
variables.myVar = "Hello";
I realize that the tag is used for webservices. But if I am
not c
ent: Friday, July 28, 2006 1:53 PM
To: CF-Talk
Subject: cfproperty vs. setting variables for in a cfc
In creating a CFC, what is the difference between
variables.myVar = "Hello";
I realize that the tag is used for webservices. But if I
am not creating a webservice, just a si
ri Jul 28 18:52:38 2006
Subject: cfproperty vs. setting variables for in a cfc
In creating a CFC, what is the difference between
variables.myVar = "Hello";
I realize that the tag is used for webservices. But if I am
not creating a webservice, just a simple cfc is there an
In creating a CFC, what is the difference between
variables.myVar = "Hello";
I realize that the tag is used for webservices. But if I am not
creating a webservice, just a simple cfc is there an advantage in using
over just setting the variable. It would appear as though I have
t
On 11/21/05, Snake <[EMAIL PROTECTED]> wrote:
> Does anyone know what the undocumented functionality of cfproperty is,
> someone mentioned it to me the other day, but it has escaped me.
What undocumented functionality?
serves just two purposes:
1. If you write a web service th
I was confusing this with getprofilestring, and don't ask why, b/c I
don't know :)
-Original Message-
From: Snake [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 3:33 PM
To: CF-Talk
Subject: RE: cfproperty
Nope, it's something your not supposed to be able to u
kes all of them requried regardless
of setting the required bit.
Russ
-Original Message-
From: Katz, Dov B (IT) [mailto:[EMAIL PROTECTED]
Sent: 21 November 2005 20:03
To: CF-Talk
Subject: RE: cfproperty
Wasn't this from the old ini file days?
-Original Message-
From: Snake
Wasn't this from the old ini file days?
-Original Message-
From: Snake [mailto:[EMAIL PROTECTED]
Sent: Monday, November 21, 2005 2:59 PM
To: CF-Talk
Subject: cfproperty
Does anyone know what the undocumented functionality of cfproperty is,
someone mentioned it to me the other day
Does anyone know what the undocumented functionality of cfproperty is,
someone mentioned it to me the other day, but it has escaped me.
Russ
~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket
> On Saturday, Aug 30, 2003, at 18:50 US/Pacific, S. Isaac
> Dealey wrote:
>> Well afaik cfproperty models (to some extent) the way
>> properties are declared in other OO languages like Java
>> --
> Nope, not really. Unless you are writing a Web Service and
> usi
On Saturday, Aug 30, 2003, at 18:50 US/Pacific, S. Isaac Dealey wrote:
> Well afaik cfproperty models (to some extent) the way
> properties are declared in other OO languages like Java --
Nope, not really. Unless you are writing a Web Service and using
cfproperty for additional validat
Well afaik cfproperty models (to some extent) the way
properties are declared in other OO languages like Java --
and while it may not be absolutely necessary to use
cfproperty in a CFC in order to set local variables, what
I'm working on right now is an application architecture that
includes
Isaac,
Isn't CFProperty mostly for documentation at the CFC level, and doesn't
actually create any variables? Use CFArgument to declare and default
arguments in methods and to declare private
properties.
Andy
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTE
Has anybody else on the list seen this behavior:
CFMX 6.1 - certain values can not be used in the default
attribute of the cfproperty tag:
produces error "Complex object types cannot be converted to
simple values."
produces error message "5"
produces error "Method
In some sense - cfproperty does nothing but add metadata to to the CFC.
It does NOT auto validate. For example:
will not throw an error.
In general - all cfproperty does is add metadata to a CFC. However, this
can be very powerful. I've written a UDF, for example, that allows me to
sp
Sorry old thread, but got a question that would fit perfectly.
What is the real difference between using cfproperty and the this
scope? Are the only advantages the datatype validation?
--
jon
mailto:[EMAIL PROTECTED]
Wednesday, August 7, 2002, 9:55:02 PM, you wrote:
HH> Sean,
HH&g
45 matches
Mail list logo