Re: cfproperty getters

2010-08-23 Thread Michael Dinowitz
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

cfproperty getters

2010-08-23 Thread Michael Dinowitz
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

Re: difference between cfproperty and variables defined with This scope

2010-02-03 Thread Aaron Neff
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

Re: difference between cfproperty and variables defined with This scope

2010-02-03 Thread Aaron Neff
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

Re: difference between cfproperty and variables defined with This scope

2010-02-03 Thread fun and learning
>> 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

Re: difference between cfproperty and variables defined with This scope

2010-02-02 Thread Judah McAuley
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

Re: difference between cfproperty and variables defined with This scope

2010-02-02 Thread Dave Watts
> 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

RE: difference between cfproperty and variables defined with This scope

2010-02-02 Thread DURETTE, STEVEN J (ATTASIAIT)
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

RE: difference between cfproperty and variables defined with This scope

2010-02-02 Thread DURETTE, STEVEN J (ATTASIAIT)
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

difference between cfproperty and variables defined with This scope

2010-02-02 Thread fun and learning
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

Re: question about cfproperty

2009-02-15 Thread Gerald Guido
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. >

Re: question about cfproperty

2009-02-15 Thread Mike Soultanian
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

Re: question about cfproperty

2009-02-15 Thread Brad Wood
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

Re: question about cfproperty

2009-02-15 Thread Mike Soultanian
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

Re: question about cfproperty

2009-02-15 Thread Dave Watts
> 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

Re: question about cfproperty

2009-02-14 Thread Gerald Guido
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

question about cfproperty

2009-02-14 Thread Mike Soultanian
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.

Re: variables.instance vs cfproperty in beans

2008-09-11 Thread Gerald Guido
>> 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

RE: variables.instance vs cfproperty in beans

2008-09-11 Thread Dave Watts
> 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

Re: variables.instance vs cfproperty in beans

2008-09-11 Thread denstar
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? >

Re: variables.instance vs cfproperty in beans

2008-09-11 Thread Richard White
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

RE: variables.instance vs cfproperty in beans

2008-09-11 Thread Dave Watts
> 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

Re: variables.instance vs cfproperty in beans

2008-09-11 Thread Richard White
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

RE: variables.instance vs cfproperty in beans

2008-09-11 Thread Dave Watts
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

variables.instance vs cfproperty in beans

2008-09-11 Thread Richard White
. 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

Re: cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Robertson-Ravo, Neil (RX)
- 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

RE: cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Ian Skinner
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

Re: cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Robertson-Ravo, Neil (RX)
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

RE: cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Richard Kroll
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

RE: cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Ben Nadel
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

RE: cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Ryan, Terrence
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

Re: cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Robertson-Ravo, Neil (RX)
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

cfproperty vs. setting variables for in a cfc

2006-07-28 Thread Ken Fused
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

Re: cfproperty

2005-11-21 Thread Sean Corfield
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

RE: cfproperty

2005-11-21 Thread Katz, Dov B \(IT\)
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

RE: cfproperty

2005-11-21 Thread Snake
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

RE: cfproperty

2005-11-21 Thread Katz, Dov B \(IT\)
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

cfproperty

2005-11-21 Thread Snake
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

Re: cfproperty default attribute is buggy

2003-09-02 Thread S . Isaac Dealey
> 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

Re: cfproperty default attribute is buggy

2003-09-02 Thread Sean A Corfield
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

RE: cfproperty default attribute is buggy

2003-08-31 Thread S . Isaac Dealey
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

RE: cfproperty default attribute is buggy

2003-08-30 Thread Andy Ousterhout
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

cfproperty default attribute is buggy

2003-08-30 Thread S . Isaac Dealey
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

RE: CFC's question and the Arguments. (cfproperty vs this)

2002-08-09 Thread Raymond Camden
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

Re: CFC's question and the Arguments. (cfproperty vs this)

2002-08-08 Thread jon hall
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