RE: Waaahhhh! Why won't my CFC work!
> Thanks for your thoughts. Once you read it, i think you'll > see the tutorial does actually explain the terms. > > At the end of the tutorial, readers will have seen examples > of encapsulation, used the variables scope and var scope, and > hopefully seen the difference between them, cfqueryparam, > init() methods, seen the benefits of isolating all queries > to a single file, designing forms for multple uses, and > getting used to the notion of reusing code. Also passing > arguments into a method using objects rather than just simple > strings or numbers. I have tried to make the terms sneak > up on them rather than be up there and obvious. That sounds like a perfect approach, then. Thanks! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308130 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Hi, Dave... Yes, Mike's doing that. He's explaining the concept in "non-jargon" terms, then identifying the concept by its proper term. He did that with "encapsulation", for example. Instantiation, also. I think what he intends, by his approach to teaching, is to teach the concepts first without relying on the unfamiliar terms, thereby avoiding unnecessary initial confusion. Once the reader understands the concept, the label is applied. It's the way I like to teach music... teach the student how to make music first, then tell them what they're doing in standard musical terms. Rick > -Original Message- > From: Dave Watts [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 6:53 AM > To: CF-Talk > Subject: RE: Waaa! Why won't my CFC work! > > > For those following this thread ... I've put the step-by-step > > tutorial I mentioned earlier on my company's web site. > > That's very nice of you! > > > And it's been written to specifically AVOID the use of all that OO > > jargon like 'encapsulation' and 'model-view-controller'.It's > > written in terms that people experienced with the more > > traditional procedural code mehods in ColdFusion will understand. > > I haven't looked it over yet, but from reading your description I can only > make one recommendation. > > You don't want to avoid those terms. If you want to understand OO, you need > to understand what those terms mean, so you can carry on conversations with > people who do know those terms and understand what they're talking about. I > agree that you shouldn't explain things only with those terms, but once > you've explained the fundamentals of encapsulation (which you'll do whether > you use the word "encapsulation" or not), you should wrap that part up by > explaining that this is what people mean by "encapsulation". > > For all I know, you are doing that, and I don't want to come off as overly > critical. After all, it's better than any OO tutorial I've posted anywhere. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308117 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
G'day Dave, Thanks for your thoughts. Once you read it, i think you'll see the tutorial does actually explain the terms. At the end of the tutorial, readers will have seen examples of encapsulation, used the variables scope and var scope, and hopefully seen the difference between them, cfqueryparam, init() methods, seen the benefits of isolating all queries to a single file, designing forms for multple uses, and getting used to the notion of reusing code. Also passing arguments into a method using objects rather than just simple strings or numbers. I have tried to make the terms sneak up on them rather than be up there and obvious. My main point was that when i was getting started in understanding OO, i felt so frustrated because for several weeks, every time i thought i had a glimmer or understanding, someone would explain something to me and use yet another term i didnt understand. I felt (rightly or wrongly) that some people were delibierately answering that way so they could show off, rather than enlighten me. It took me quite some weeks to get over that feeling. It was probably my own shortcoming rather than anyone else's, but i very nearly gave it all away and went back to procedural code. Looking back now from a distance of about 2.5 years, I'm SOO glad i didnt go back! Thanks for your input Dave. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Wed, Jun 25, 2008 at 8:53 PM, Dave Watts <[EMAIL PROTECTED]> wrote: >> For those following this thread ... I've put the step-by-step >> tutorial I mentioned earlier on my company's web site. > > That's very nice of you! > >> And it's been written to specifically AVOID the use of all that OO >> jargon like 'encapsulation' and 'model-view-controller'.It's >> written in terms that people experienced with the more >> traditional procedural code mehods in ColdFusion will understand. > > I haven't looked it over yet, but from reading your description I can only > make one recommendation. > > You don't want to avoid those terms. If you want to understand OO, you need > to understand what those terms mean, so you can carry on conversations with > people who do know those terms and understand what they're talking about. I > agree that you shouldn't explain things only with those terms, but once > you've explained the fundamentals of encapsulation (which you'll do whether > you use the word "encapsulation" or not), you should wrap that part up by > explaining that this is what people mean by "encapsulation". > > For all I know, you are doing that, and I don't want to come off as overly > critical. After all, it's better than any OO tutorial I've posted anywhere. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308111 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
> For those following this thread ... I've put the step-by-step > tutorial I mentioned earlier on my company's web site. That's very nice of you! > And it's been written to specifically AVOID the use of all that OO > jargon like 'encapsulation' and 'model-view-controller'.It's > written in terms that people experienced with the more > traditional procedural code mehods in ColdFusion will understand. I haven't looked it over yet, but from reading your description I can only make one recommendation. You don't want to avoid those terms. If you want to understand OO, you need to understand what those terms mean, so you can carry on conversations with people who do know those terms and understand what they're talking about. I agree that you shouldn't explain things only with those terms, but once you've explained the fundamentals of encapsulation (which you'll do whether you use the word "encapsulation" or not), you should wrap that part up by explaining that this is what people mean by "encapsulation". For all I know, you are doing that, and I don't want to come off as overly critical. After all, it's better than any OO tutorial I've posted anywhere. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308103 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Hey, Mike... couldn't wait until tomorrow, so I went ahead and jumped into the app. Looking good so far. Like the approach you're taking with the narrative. I'm going to mention things in this thread as I go along that I think you'll want or might want to know. First thing I saw was that I wasn't getting the nice table formatting on my index.cfm page. I changed the path from "/css/c22Tutorial.css" to "css/c22Tutorial.css" and the nice table appeared. :o) Rick > -Original Message- > From: Mike Kear [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 12:22 AM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > For those following this thread ... I've put the step-by-step > tutorial I mentioned earlier on my company's web site. The first > tutorial of what I hope will become a series describes how to set up a > simple application to manage the records in a table using a CFC to > isolate all database operations to a single CFC and introduces some > object procedures to pass data around from one place in the > applicatoin to another. Also it shows how to reuse a form for > multiple purposes. > > And it's been written to specifically AVOID the use of all that OO > jargon like 'encapsulation' and 'model-view-controller'.It's > written in terms that people experienced with the more traditional > procedural code mehods in ColdFusion will understand. > > You can download the code and run it on your own machine, and follow > through the files line by line as I describe how it works and what > everything does. > > You can find it at my web site at http://afpwebworks.comI hope > you'll give it a look. Do please let me know what you think of it. > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308093 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
For those following this thread ... I've put the step-by-step tutorial I mentioned earlier on my company's web site. The first tutorial of what I hope will become a series describes how to set up a simple application to manage the records in a table using a CFC to isolate all database operations to a single CFC and introduces some object procedures to pass data around from one place in the applicatoin to another. Also it shows how to reuse a form for multiple purposes. And it's been written to specifically AVOID the use of all that OO jargon like 'encapsulation' and 'model-view-controller'.It's written in terms that people experienced with the more traditional procedural code mehods in ColdFusion will understand. You can download the code and run it on your own machine, and follow through the files line by line as I describe how it works and what everything does. You can find it at my web site at http://afpwebworks.comI hope you'll give it a look. Do please let me know what you think of it. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308089 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
Yes, it looks like ColdSpring will a be a great addition! Rick > -Original Message- > From: Mike Kear [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 22, 2008 10:52 PM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > Oh and can i add, Rick , yes you DO want to use ColdSpring, but not > just yet.You'll get to the point where you're bitching to yourself > that all you seem to be doing is writing createobject("component","Componentname").init() /> all the time and > you're always forgetting the exact path to a cfc and what exactly it > needs to instantiate it. > > That's the time to start looking at ColdSpring. > > You need to be ok with flying the Cessna 172 before you get in the > cockpit of the F/18A Super Hornet. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307952 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
Thanks, Mike! Looking forward to it! Rick > -Original Message- > From: Mike Kear [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 22, 2008 10:47 PM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > Rick, I havent forgotten my promise to get you a sample app. I'm > nearly finished it now.It's all working, but it's working on my > SQLServer datasource. I want to make it work on Access, so i can zip > it all up and supply the datasource to go with it. > > For the others who might be interested, I'll be posting it somewhere, > probably on my company's web site once i have the narrative written > and checked. > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307951 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
Mike ++ You kick ass dude! Yet another reason to use CF. The community ROCKS G$ On Sun, Jun 22, 2008 at 10:46 PM, Mike Kear <[EMAIL PROTECTED]> wrote: > Rick, I havent forgotten my promise to get you a sample app. I'm > nearly finished it now.It's all working, but it's working on my > SQLServer datasource. I want to make it work on Access, so i can zip > it all up and supply the datasource to go with it. > > For the others who might be interested, I'll be posting it somewhere, > probably on my company's web site once i have the narrative written > and checked. > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > > > On Mon, Jun 23, 2008 at 10:04 AM, Rick Faircloth > <[EMAIL PROTECTED]> wrote: > > What! My code has *always* been sexy! Well... maybe... :oP > > > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307948 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
Oh and can i add, Rick , yes you DO want to use ColdSpring, but not just yet.You'll get to the point where you're bitching to yourself that all you seem to be doing is writing all the time and you're always forgetting the exact path to a cfc and what exactly it needs to instantiate it. That's the time to start looking at ColdSpring. You need to be ok with flying the Cessna 172 before you get in the cockpit of the F/18A Super Hornet. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307947 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
Rick, I havent forgotten my promise to get you a sample app. I'm nearly finished it now.It's all working, but it's working on my SQLServer datasource. I want to make it work on Access, so i can zip it all up and supply the datasource to go with it. For the others who might be interested, I'll be posting it somewhere, probably on my company's web site once i have the narrative written and checked. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Mon, Jun 23, 2008 at 10:04 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > What! My code has *always* been sexy! Well... maybe... :oP > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307946 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
What! My code has *always* been sexy! Well... maybe... :oP > -Original Message- > From: Will Tomlinson [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 22, 2008 6:22 PM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > It's hard to imagine u writing sexy code. But damn Rick, you're almost there! > > Keep it up guy! :) > > Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307945 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Thanks for the encouragement, Gerald. The pain is starting to pay off. I'm able to code the cfc's now (basic ones) and have been able to start using Application.cfc in the process. I've even used a couple of cfc functions in a current app in development. It does take a while for the little gaps in knowledge to be filled in, but it's happening! :o) Rick > -Original Message- > From: Gerald Guido [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 22, 2008 5:46 PM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > + 1 to Mr. Faircloth > .. > I feel your pain and admire your determination. Some time soon the light > bulbs will be going off and you will have a Grand Mal "AH HA!!!". And it is > going to be *awesome*. > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307944 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
It's hard to imagine u writing sexy code. But damn Rick, you're almost there! Keep it up guy! :) Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307940 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
+ 1 to Mr. Faircloth .. I feel your pain and admire your determination. Some time soon the light bulbs will be going off and you will have a Grand Mal "AH HA!!!". And it is going to be *awesome*. >>> ColdSpring can do a lot of really cool stuff, but I think it's an EXCELLENT idea to get a grasp of CFCs in general before venturing around with CS. Yeah, what denstar said... One thing at a time. It is too easy to think yourself stupid by loading up on too many things at once. Stick with CFC's for the moment... me thinks IMHO. Once the cfc light bulb goes off and you start using CFC's regularly you will come to a point where you will run into a problem that ColdSpring will be able to solve. The same thing happened to me on this very list and when I had that problem and someone said to me "now you see how ColdSpring can come in handy" (or some such). That was a very nice "Ah Ha" moment. Keep plugging away and rock on with your bad ass self!!! G$ -- "If everything seems under control, you're not going fast enough" -- Mario Andretti ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307939 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
ColdSpring can do a lot of really cool stuff, but I think it's an EXCELLENT idea to get a grasp of CFCs in general before venturing around with CS. And I just wanted to say what a beautiful thread this has been! Mike, you rock! -- Uncle Chu: What the hell is Gracie Law doing here? Jack Burton: She can't get enough of me. Gracie: Hah! He wishes. On Sat, Jun 21, 2008 at 10:08 AM, Rick Faircloth wrote: > I hear what you're saying, Michael. > > That's typically the approach I take with anything. > I like the cfc idea and will continue to use it, at least with > , but I'll give another shot at using createObject because > it seems to offer a lot of benefit without much more work. > > Now as far as using a framework goes...that's going to be a ways off. > > I have to admit however, that Coldspring that Mike mentioned would be > a great boost to productivity since it creates all the necessary code, etc., > for interacting with a db, and that is a lot of the work. But that's a > little much for me right now. I've got to be able to stay productive > (as in making money) while I learn. > > Thanks for the perspective. > > Rick ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307935 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
I hear what you're saying, Michael. That's typically the approach I take with anything. I like the cfc idea and will continue to use it, at least with , but I'll give another shot at using createObject because it seems to offer a lot of benefit without much more work. Now as far as using a framework goes...that's going to be a ways off. I have to admit however, that Coldspring that Mike mentioned would be a great boost to productivity since it creates all the necessary code, etc., for interacting with a db, and that is a lot of the work. But that's a little much for me right now. I've got to be able to stay productive (as in making money) while I learn. Thanks for the perspective. Rick > -Original Message- > From: Dawson, Michael [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 21, 2008 10:21 AM > To: CF-Talk > Subject: RE: Waaa! Why won't my CFC work! > > Mike Kear had some very excellent tips. For me, I noticed that I evolve > over time. I was fine with inline queries and the such, for the longest > time. > > Then, I started seeing these patterns, as Mike Kear noted, where I was > duplicating myself. Then, I felt it was time to move to the next level. > Then, when something didn't feel right, I would evolve a bit more. > > However, I'm still not ready or interested in jumping right into a > framework. I haven't felt that need to evolve. However, we are working > on rebuilding two of our major sites. I'm guessing that I will find a > reasonable need to evolve at that point. > > Until then, I don't always see the need to move into a framework out of > peer pressure. > > m!ke > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307911 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
Mike Kear had some very excellent tips. For me, I noticed that I evolve over time. I was fine with inline queries and the such, for the longest time. Then, I started seeing these patterns, as Mike Kear noted, where I was duplicating myself. Then, I felt it was time to move to the next level. Then, when something didn't feel right, I would evolve a bit more. However, I'm still not ready or interested in jumping right into a framework. I haven't felt that need to evolve. However, we are working on rebuilding two of our major sites. I'm guessing that I will find a reasonable need to evolve at that point. Until then, I don't always see the need to move into a framework out of peer pressure. m!ke -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 11:18 PM To: CF-Talk Subject: RE: Waaahhhh! Why won't my CFC work! Wow, Mike! Thanks for the great intro primer! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307907 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Oh, and I mentioned that I only use "products" that are deemed necessary or provide a great benefit in their use vs their risk. In the case of jQuery, some of the effects, like rotating photos with the Cycle plugin, are demands of clients these days. I use jQuery capabilities, in this instance, as a "Flash Replacement" (boy, I hate working with Flash... and jQuery does a better job with *much* less work for many things). It also solves the "I want to change the order that these are displayed in" problem by allowing drag-n-drop reordering, relatively easily solving another client demand. So, in jQuery's case, it's a "this product is worth the risk to get the benefit" situation. But, again, the versions change so fast there's always the risk of previous functionality breaking, which just adds to my workload. So I take a conservative approach to using jQuery, instead of splashing it around everwhere. > -Original Message- > From: Will Tomlinson [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 21, 2008 1:25 AM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > > Oh, I don't know... I'm a little leery of getting involved > > with a "product" and becoming dependent on it. I'll have a look, > > but... > > > > Thoughts? > > > Like jQuery?? > > :) > > Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307905 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Yeah, even like jQuery! I'm using it, but the dependencies and compatibility changes every month with each new version and I'm very concerned about things breaking! jQuery is a *big* concern. It's a great tool and has enabled me to code Javascript (which I never thought I'd do), but I'm taking the approach of just never upgrading a version that I started with on a project so I don't have to worry about something breaking. The development for jQuery is *too* fast for me! > -Original Message- > From: Will Tomlinson [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 21, 2008 1:25 AM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > > Oh, I don't know... I'm a little leery of getting involved > > with a "product" and becoming dependent on it. I'll have a look, > > but... > > > > Thoughts? > > > Like jQuery?? > > :) > > Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307904 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
Thanks, Mike! A look at some basic code with all the working parts would be just what I need. I get a little here, a little there from the list, but it seems just enough to keep me interested, yet not enough to let me see the whole picture. I look forward to it. And... I know what you mean about Saturday nights. :o) Rick > -Original Message- > From: Mike Kear [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 21, 2008 1:05 AM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > Ok i'll write up a little treatise on CFCs in a real estate app for > you - a simple one that just manages inserts, edits, deletes and > queries on a table of property listings. I'll take one that i use for > my client (the one i think is the same as yours) and fictionalise it a > bit to protect the IP of my client. You'll see how it works, and how > you can integrate it with your user interface code. Also it will > mean i can share it with others if they want. (I'd blog it but i'm > too lazy to maintain a blog - i dont have one. I know what they're > like to keep going - i had one years ago before they were called > blogs.). > > There's a WHOLE LOT more you can learn but i'll keep it to the basics > for you and try to keep jargon out of it. > > Another nice thing about having a defined pattern to your code, is > that you can have other stuff write a lot of the code for you.I > have a little application I wrote to examine a database table, and > write all the queries to add/delete/edit/read from it and produce the > CFCs for me - that's too advanced for you just yet but if you see > that at work, you can see one of the benefits of using patterns to > your code. That's what some of these frameworks do - things lke > Transfer and Reactor for example recognise when you add a field to > your database table and re-write your CFCs to match. Without ever > seeing that at work, I am sure you can see how that would be of > benefit to you as a developer where time represents dollars. > Coldspring is another tool - it knows how to instantiate your CFCs and > whenever you call for a CFC, Coldspring knows what to do and just > creates it for you, guaranteeing it feeds the CFC everything it needs > to know. And it knows which CFCs to cache in memory and which to > destroy after each use. It's a marvel! > > But for now lets leave all that stuff aside, with the understanding > you'll want to know about that a bit down the track. I'll write some > stuff tonight for you and hopefully have it for you tomorrow.It's > Saturday night and i dont have anything to do. (jeez i'm OLD > already!!) > > Man you've come a long way in a short time - from being in the > ColdFusion stone age (i.e. CF4 wasn't it?) only a few months ago, now > you're moving up to the cutting edge.Believe me, when i jumped > into this OO pool, it revolutionised the way i write applications, and > made possible - even easy - things i'd have scratched my head about > in the old days, thinking that was beyond my capabilities. > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307903 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
> Oh, I don't know... I'm a little leery of getting involved > with a "product" and becoming dependent on it. I'll have a look, > but... > > Thoughts? Like jQuery?? :) Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307899 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
Ok i'll write up a little treatise on CFCs in a real estate app for you - a simple one that just manages inserts, edits, deletes and queries on a table of property listings. I'll take one that i use for my client (the one i think is the same as yours) and fictionalise it a bit to protect the IP of my client. You'll see how it works, and how you can integrate it with your user interface code. Also it will mean i can share it with others if they want. (I'd blog it but i'm too lazy to maintain a blog - i dont have one. I know what they're like to keep going - i had one years ago before they were called blogs.). There's a WHOLE LOT more you can learn but i'll keep it to the basics for you and try to keep jargon out of it. Another nice thing about having a defined pattern to your code, is that you can have other stuff write a lot of the code for you.I have a little application I wrote to examine a database table, and write all the queries to add/delete/edit/read from it and produce the CFCs for me - that's too advanced for you just yet but if you see that at work, you can see one of the benefits of using patterns to your code. That's what some of these frameworks do - things lke Transfer and Reactor for example recognise when you add a field to your database table and re-write your CFCs to match. Without ever seeing that at work, I am sure you can see how that would be of benefit to you as a developer where time represents dollars. Coldspring is another tool - it knows how to instantiate your CFCs and whenever you call for a CFC, Coldspring knows what to do and just creates it for you, guaranteeing it feeds the CFC everything it needs to know. And it knows which CFCs to cache in memory and which to destroy after each use. It's a marvel! But for now lets leave all that stuff aside, with the understanding you'll want to know about that a bit down the track. I'll write some stuff tonight for you and hopefully have it for you tomorrow.It's Saturday night and i dont have anything to do. (jeez i'm OLD already!!) Man you've come a long way in a short time - from being in the ColdFusion stone age (i.e. CF4 wasn't it?) only a few months ago, now you're moving up to the cutting edge.Believe me, when i jumped into this OO pool, it revolutionised the way i write applications, and made possible - even easy - things i'd have scratched my head about in the old days, thinking that was beyond my capabilities. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On Sat, Jun 21, 2008 at 2:17 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Wow, Mike! Thanks for the great intro primer! > > I'd be happy to look at your CFC's. Perhaps they would clarify > my understanding. > > I really just need to see an example from start to finish of a situation > where there's a db, say "myDatabase", see how that is initialized with > the "init" function, see how createObject is used in relation to > functions within a CFC, and how the data is output. > > Some of that I'm grasping. But I haven't been able to put together > functioning, start-to-finish, code yet. I'm using CFC's, but so far > I can only make them work with ... I seem to understand the > code more intuitively. > > But the idea of putting objects into memory using createObject is > fascinating and I hope I can get that working. I'm having to do this > "on-the-fly" however...trying to learn this on a current, > "should-have-been-done-yesterday" project, so I have little time for > trial and error. (A frustrating way to work and, especially, to learn!) > > Anyway, whatever you care to share is appreciated! And thanks again for > taking the time to type up the primer! > > Rick > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307897 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Wow, Mike! Thanks for the great intro primer! I'd be happy to look at your CFC's. Perhaps they would clarify my understanding. I really just need to see an example from start to finish of a situation where there's a db, say "myDatabase", see how that is initialized with the "init" function, see how createObject is used in relation to functions within a CFC, and how the data is output. Some of that I'm grasping. But I haven't been able to put together functioning, start-to-finish, code yet. I'm using CFC's, but so far I can only make them work with ... I seem to understand the code more intuitively. But the idea of putting objects into memory using createObject is fascinating and I hope I can get that working. I'm having to do this "on-the-fly" however...trying to learn this on a current, "should-have-been-done-yesterday" project, so I have little time for trial and error. (A frustrating way to work and, especially, to learn!) Anyway, whatever you care to share is appreciated! And thanks again for taking the time to type up the primer! Rick > -Original Message- > From: Mike Kear [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 10:49 PM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > Rick, you're showing the signs of the frustration I felt when i was > starting to learn this stuff.Dont worry - it all comes clear in > the end. > > There is a problem for the newbie into OO coldfusion in that there is > a whole host of other OO languages around that are supplying concepts > and terminology to this.As soon as you learn what one word means, > another pops up.As soon as you think you're getting the hang of > it, someone uses a new term you havent heard before, and you get all > depressed because there's yet another concept to learn about. Often, > there are concepts in one technology that also exist in other > techologies but they have different names. Or there's these things > called design patterns. (which simply means the style of structuring > you code components to do the job) and when someone develops a design > pattern they often invent terminology to describe the concepts behind > it. > > But dont let it steer you off. I struggled to understand all these > new terms at first, then i suddenly realised - i dont need to care > about all those terms, as long as i get the basic concepts and > techniques right. I can learn the terminology later.Once i got > that, everything went simpler. I didnt have to know what > 'encapsulation' was or what a facade was, or why the init function > had to have all the values in the 'variable' scope, as long as i did > it. And later on, i came to see why i needed to use the variables > scope, and i came to see that i had been encapsulating my code > without knowing what it meant. > > There are some on this list who are immensely helpful. They must > surely be helping us at the cost of their own productivity. There > are others, (who i wont name) who I think go out of their way to strut > their own superior knowledge to impress all the others on this list - > 'look how clever I am' without helping you at all.I guess you'll > figure out who is in which group, pay attention to the advice of the > one group and ignore the other. > > There are some things I suggest you just accept for now, on the > understanding that you'll eventually see the wisdom. > > I suggest you adopt these as rules to follow, for the mean time, > which will help you get things rolling, and you can decide whether to > continue using them or not later on as you get your head around all > the concepts: > > [A] encapsulate - in other words, never require a CFC to know about > anything outside it. If a CFC needs to know something, pass it in > as an argument to the method, or in the init method > > [B] Never put any display code in a CFC. Treat all your CFCs as > though they are new functions in ColdFusion (which they are really) > and call the method, get a result, then use the code on your calling > page to format the result into display. > > [C] any time you catch yourself writing code you've done before, > consider whether thats time to put that code into a cfc where the one > bit of code can be used in both places as a cfc. > > [D] never put a query in your page code. Always put it into a CFC. > Preferably all your queries on a table in the same CFC. (this is > commonly called a gateway or a DAO cfc, but dont let the terminology > bamboozle you). So if you have 5 tables in your app, you would have 5 > CFCs handling database access. If you follow
RE: Waaahhhh! Why won't my CFC work!
Thanks for the perspective, Charlie. Rick > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 10:47 PM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > On Fri, Jun 20, 2008 at 7:23 PM, Rick Faircloth > <[EMAIL PROTECTED]> wrote: > > > if a "program" should become unavailable. Now, depending on > > a "foundation" program, such as CF is a little different than > > what I'm talking about. > > if Model-Glue (or Fusebox or Mach-ii or ColdBox or... ) were to cease > all development today, your existing code would still work fine, no > different than if ColdFusion were to stop being produced. > > > But no, I have never used Dreamweaver, and, after using Eclipse > > for a few months, I gave it up. Not because Eclipse wasn't suitable... > > it didn't generate any code for me...but because I couldn't get it to > > function with CFE, SVN, and FTP the way I wanted. It was my fault, but > > I just needed to put it aside for the time being to get some work done. > > > > And yes, Subversion, like Windows, is a tool I use in my work, but it > > doesn't do the work for me. Subversion just watches my back as I work. > > Ah, I thought you had gone from DW to Eclipse and back. Either way, I > wasn't trying to single out a particular IDE. Just whatever IDE you > were using :) > > A framework doesn't do your work for you either. Just like a hammer > doesn't build a house... it's just a tool that you use to make your > life easier. Is there a learning curve? Sure. Just like any tool, > you need to invest time to learn how to use it properly. a hammer > might not be the best example here... i'm fairly certain even will > tomlinson can use a hammer. But you get my point. It's a consistent > way of doing what you do now. You just need to learn that way. > > > But the whole point about Model Glue or any other framework is that > > it probably does a lot of stuff I wouldn't understand, and if something > > went wrong, then I might not be able to fix it. Now, I'm just expressing > > a view from a perspective of ignorance, not having used any frameworks. > > That's why I said I'd take a look...I would just do it with some > > trepidation. > > Again, learning curve. Sure, it'll do stuff you don't understand. At > first. The first time I saw Model-Glue code I was pretty overwhelmed. > Not sure what you mean by "if something went wrong". If something > goes wrong, it throws an error (and you can output debug info to the > screen), and you debug it just like any non-frameworked code. most of > the frameworks have a mailing list as well. > > > I just like to avoid dependence unless it's necessary or there's a > > great benefit from the risk. > > I still don't really view it as a "dependency" as much as a tool. > Either way, I'm not trying to ruffle feathers or rile the > non-framework crowd. I just wanted you to look at it in the proper > perspective, whichever route you choose to go. > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307895 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
Rick, you're showing the signs of the frustration I felt when i was starting to learn this stuff.Dont worry - it all comes clear in the end. There is a problem for the newbie into OO coldfusion in that there is a whole host of other OO languages around that are supplying concepts and terminology to this.As soon as you learn what one word means, another pops up.As soon as you think you're getting the hang of it, someone uses a new term you havent heard before, and you get all depressed because there's yet another concept to learn about. Often, there are concepts in one technology that also exist in other techologies but they have different names. Or there's these things called design patterns. (which simply means the style of structuring you code components to do the job) and when someone develops a design pattern they often invent terminology to describe the concepts behind it. But dont let it steer you off. I struggled to understand all these new terms at first, then i suddenly realised - i dont need to care about all those terms, as long as i get the basic concepts and techniques right. I can learn the terminology later.Once i got that, everything went simpler. I didnt have to know what 'encapsulation' was or what a facade was, or why the init function had to have all the values in the 'variable' scope, as long as i did it. And later on, i came to see why i needed to use the variables scope, and i came to see that i had been encapsulating my code without knowing what it meant. There are some on this list who are immensely helpful. They must surely be helping us at the cost of their own productivity. There are others, (who i wont name) who I think go out of their way to strut their own superior knowledge to impress all the others on this list - 'look how clever I am' without helping you at all.I guess you'll figure out who is in which group, pay attention to the advice of the one group and ignore the other. There are some things I suggest you just accept for now, on the understanding that you'll eventually see the wisdom. I suggest you adopt these as rules to follow, for the mean time, which will help you get things rolling, and you can decide whether to continue using them or not later on as you get your head around all the concepts: [A] encapsulate - in other words, never require a CFC to know about anything outside it. If a CFC needs to know something, pass it in as an argument to the method, or in the init method [B] Never put any display code in a CFC. Treat all your CFCs as though they are new functions in ColdFusion (which they are really) and call the method, get a result, then use the code on your calling page to format the result into display. [C] any time you catch yourself writing code you've done before, consider whether thats time to put that code into a cfc where the one bit of code can be used in both places as a cfc. [D] never put a query in your page code. Always put it into a CFC. Preferably all your queries on a table in the same CFC. (this is commonly called a gateway or a DAO cfc, but dont let the terminology bamboozle you). So if you have 5 tables in your app, you would have 5 CFCs handling database access. If you follow that procedure, you'll see the benefit when you have to make a change to your database!! [E] inside a function, ALWAYS var your variables. (Sorry, there's some jargon - I was trying to avoid using jargon).In other words, if you are using a variable inside the function called 'dateadded', then at the top of the function, the first few lines after the arguments, put something like the following: What that does is make sure that the value of 'dateadded' will only be available inside this function. IF there is any other variable called 'dateadded' somewhere else in your app, it wont overwrite the value of dateadded here. This keeps your cfcs thread safe. Imagine if you have 30 people all accessing a page at once. Then you could have one person's value of 'dateadded' overwrite another 'dateadded', in use by someone else somewhere else in the application.. [F] an init function looks like this: (dont 'var' your variables in the init() function or they wont be available elsewhere in the CFC). And when you want to use a dsn name elsewhere in this component, in other functions, you do it like this; SELECT * from tablename That way, you pass in the datasource name (also other configuration variables like passwords, usernames, local time, ) when you instantiate the CFC and any other method in the CFC can use them without needing them passed in. For now, just accept those as rules, and you wont have to stress about why.These are not absolute rules - there are exceptions and reasons why you might not want to do these things later. But you'll get up and rolling quicker if you just accept them as rules for now, and as you get more experience with OO, and come
Re: Waaahhhh! Why won't my CFC work!
On Fri, Jun 20, 2008 at 7:23 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > if a "program" should become unavailable. Now, depending on > a "foundation" program, such as CF is a little different than > what I'm talking about. if Model-Glue (or Fusebox or Mach-ii or ColdBox or... ) were to cease all development today, your existing code would still work fine, no different than if ColdFusion were to stop being produced. > But no, I have never used Dreamweaver, and, after using Eclipse > for a few months, I gave it up. Not because Eclipse wasn't suitable... > it didn't generate any code for me...but because I couldn't get it to > function with CFE, SVN, and FTP the way I wanted. It was my fault, but > I just needed to put it aside for the time being to get some work done. > > And yes, Subversion, like Windows, is a tool I use in my work, but it > doesn't do the work for me. Subversion just watches my back as I work. Ah, I thought you had gone from DW to Eclipse and back. Either way, I wasn't trying to single out a particular IDE. Just whatever IDE you were using :) A framework doesn't do your work for you either. Just like a hammer doesn't build a house... it's just a tool that you use to make your life easier. Is there a learning curve? Sure. Just like any tool, you need to invest time to learn how to use it properly. a hammer might not be the best example here... i'm fairly certain even will tomlinson can use a hammer. But you get my point. It's a consistent way of doing what you do now. You just need to learn that way. > But the whole point about Model Glue or any other framework is that > it probably does a lot of stuff I wouldn't understand, and if something > went wrong, then I might not be able to fix it. Now, I'm just expressing > a view from a perspective of ignorance, not having used any frameworks. > That's why I said I'd take a look...I would just do it with some > trepidation. Again, learning curve. Sure, it'll do stuff you don't understand. At first. The first time I saw Model-Glue code I was pretty overwhelmed. Not sure what you mean by "if something went wrong". If something goes wrong, it throws an error (and you can output debug info to the screen), and you debug it just like any non-frameworked code. most of the frameworks have a mailing list as well. > I just like to avoid dependence unless it's necessary or there's a > great benefit from the risk. I still don't really view it as a "dependency" as much as a tool. Either way, I'm not trying to ruffle feathers or rile the non-framework crowd. I just wanted you to look at it in the proper perspective, whichever route you choose to go. >> -Original Message- >> From: Charlie Griefer [mailto:[EMAIL PROTECTED] >> Sent: Friday, June 20, 2008 9:54 PM >> To: CF-Talk >> Subject: Re: Waaa! Why won't my CFC work! >> >> you mean a "product" like ColdFusion? or a "product" like Dreamweaver >> or Eclipse? or a "product" like Subversion. >> >> Yeah, i can't imagine anyone wanting to use and become dependent on >> any of those "products". >> >> (and yes, I know that you use all of those, and yes, I'm trying to >> make a point). >> >> >> On Fri, Jun 20, 2008 at 6:36 PM, Rick Faircloth >> <[EMAIL PROTECTED]> wrote: >> > Oh, I don't know... I'm a little leery of getting involved >> > with a "product" and becoming dependent on it. I'll have a look, >> > but... >> > >> > Thoughts? >> > >> > Rick >> > >> >> -Original Message- >> >> From: Will Tomlinson [mailto:[EMAIL PROTECTED] >> >> Sent: Friday, June 20, 2008 7:10 PM >> >> To: CF-Talk >> >> Subject: Re: Waaa! Why won't my CFC work! >> >> >> >> >Thanks for the info, Matt. >> >> > >> >> >I think I've got a handle on those methods. >> >> >> >> >> >> Rick, I know you just moved up to cf8 from allaire -4, but you gotta >> >> dload model glue and give > it >> > a >> >> whirl. Follow ray's blog. >> >> >> >> Will >> > >> > >> > >> > >> >> > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307892 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Your point is well-taken, Charlie. And yes, I do use CF, but I need some language to program in and CF is so easy to program. However, I don't depend on any IDE for coding. I stay away from wizards, etc. I hand-code everything, except for what I borrow from others. I just like to understand my code and not get stuck if a "program" should become unavailable. Now, depending on a "foundation" program, such as CF is a little different than what I'm talking about. But no, I have never used Dreamweaver, and, after using Eclipse for a few months, I gave it up. Not because Eclipse wasn't suitable... it didn't generate any code for me...but because I couldn't get it to function with CFE, SVN, and FTP the way I wanted. It was my fault, but I just needed to put it aside for the time being to get some work done. And yes, Subversion, like Windows, is a tool I use in my work, but it doesn't do the work for me. Subversion just watches my back as I work. But the whole point about Model Glue or any other framework is that it probably does a lot of stuff I wouldn't understand, and if something went wrong, then I might not be able to fix it. Now, I'm just expressing a view from a perspective of ignorance, not having used any frameworks. That's why I said I'd take a look...I would just do it with some trepidation. I just like to avoid dependence unless it's necessary or there's a great benefit from the risk. > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 9:54 PM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > you mean a "product" like ColdFusion? or a "product" like Dreamweaver > or Eclipse? or a "product" like Subversion. > > Yeah, i can't imagine anyone wanting to use and become dependent on > any of those "products". > > (and yes, I know that you use all of those, and yes, I'm trying to > make a point). > > > On Fri, Jun 20, 2008 at 6:36 PM, Rick Faircloth > <[EMAIL PROTECTED]> wrote: > > Oh, I don't know... I'm a little leery of getting involved > > with a "product" and becoming dependent on it. I'll have a look, > > but... > > > > Thoughts? > > > > Rick > > > >> -Original Message- > >> From: Will Tomlinson [mailto:[EMAIL PROTECTED] > >> Sent: Friday, June 20, 2008 7:10 PM > >> To: CF-Talk > >> Subject: Re: Waaa! Why won't my CFC work! > >> > >> >Thanks for the info, Matt. > >> > > >> >I think I've got a handle on those methods. > >> > >> > >> Rick, I know you just moved up to cf8 from allaire -4, but you gotta dload > >> model glue and give it > > a > >> whirl. Follow ray's blog. > >> > >> Will > > > > > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307891 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
you mean a "product" like ColdFusion? or a "product" like Dreamweaver or Eclipse? or a "product" like Subversion. Yeah, i can't imagine anyone wanting to use and become dependent on any of those "products". (and yes, I know that you use all of those, and yes, I'm trying to make a point). On Fri, Jun 20, 2008 at 6:36 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Oh, I don't know... I'm a little leery of getting involved > with a "product" and becoming dependent on it. I'll have a look, > but... > > Thoughts? > > Rick > >> -Original Message- >> From: Will Tomlinson [mailto:[EMAIL PROTECTED] >> Sent: Friday, June 20, 2008 7:10 PM >> To: CF-Talk >> Subject: Re: Waaa! Why won't my CFC work! >> >> >Thanks for the info, Matt. >> > >> >I think I've got a handle on those methods. >> >> >> Rick, I know you just moved up to cf8 from allaire -4, but you gotta dload >> model glue and give it > a >> whirl. Follow ray's blog. >> >> Will > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307890 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Oh, I don't know... I'm a little leery of getting involved with a "product" and becoming dependent on it. I'll have a look, but... Thoughts? Rick > -Original Message- > From: Will Tomlinson [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 7:10 PM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > >Thanks for the info, Matt. > > > >I think I've got a handle on those methods. > > > Rick, I know you just moved up to cf8 from allaire -4, but you gotta dload > model glue and give it a > whirl. Follow ray's blog. > > Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307889 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
>Thanks for the info, Matt. > >I think I've got a handle on those methods. Rick, I know you just moved up to cf8 from allaire -4, but you gotta dload model glue and give it a whirl. Follow ray's blog. Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307877 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
Thanks, Ian... > -Original Message- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 3:50 PM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > Ian Skinner wrote: > > Rick Faircloth wrote: > > > >> What is "CFCDev"... a conference? Book? > >> > >> > >> > > Web Site > > Hit 'Send' to fast... > > Website - http://www.cfczone.org/ > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307863 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
Ian Skinner wrote: > Rick Faircloth wrote: > >> What is "CFCDev"... a conference? Book? >> >> >> > Web Site Hit 'Send' to fast... Website - http://www.cfczone.org/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307860 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
Rick Faircloth wrote: > What is "CFCDev"... a conference? Book? > > Web Site ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307859 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
Thanks for the info and code, Matt. I'll try out your example and see what happens. Rick > -Original Message- > From: Matt Williams [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 11:32 AM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > On Fri, Jun 20, 2008 at 10:10 AM, Rick Faircloth > <[EMAIL PROTECTED]> wrote: > > Can you explain how that work and show me an example > > of the code I need to put in a cfc. > > > > I tried this that someone gave me: > > > > > > > > > > > > > > > > But that doesn't make sense to me. My dsn is set > > in application.cfm like so: cfset application.dsn = "myDB". > > So why, "variables.dsn" above? > > > > I just don't understand what the code is doing. > > Why is variables.dsn being set to be the value of > > arguments.dsn? And what exactly does "cfreturn this" do? > > > > The idea here is to keep you cfc separate from the application so it > is more re-usable. It is good practice to not reference application > scope (or form or session, etc.) directly in your cfc (there are > always exceptions to this, as Tom mentioned a facade earlier). But in > keeping it simple, this init function is receiving the dsn as an > argument and putting it in the variables scope so that the cfc does > not have any knowledge of the application scope. > > When you do createObject('component','myObj').init(application.dsn) /> that is > telling the server to create a new instance. This instance will be put > in the server memory. By using , the instance is > returned to whatever calls it. In other words, the variable > "myNewInstance" holds a reference to that object. > > If you have the basic setup working, try a cfdump on myObj. > > > > You'll see what looks like a structure output of all the methods > defined for that object. Some folks like to also add a "dump" method > to their cfcs. > > > > > With that, you can do this: > > That will show you the values that are held within the variables scope > (doing this you will also see each function definition). > > I just got Ian's post. He explains the different scopes. > > I think one of the main things you'll need to grasp first is that when > you create this object, it exists in memory and holds data and > functions with which you can interact. Because of this, you'll want to > think about what scope an object should exist within. An object that > holds information specific to one user makes sense to be in session > scope. But an object that can be used by many users should probably be > in application scope. This is one of the advantages Object Oriented > programming. Otherwise you are just creating and destroying objects > for every request and may as well do it inline or with cfincluded > files. > > Hope that helps. Keep the questions coming though. There are also many > blog entries on some of these basics. Adrian Moreno's blog comes to > mind first. He did a whole series. > http://www.iknowkungfoo.com/blog/index.cfm/2007/8/22/Object-Oriented-Coldfusion--1--Intro-to-Objectc fc > -- > Matt Williams > "It's the question that drives us." ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307847 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
What is "CFCDev"... a conference? Book? > -Original Message- > From: Tom Chiverton [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 11:31 AM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > On Friday 20 Jun 2008, Rick Faircloth wrote: > > > In a more complex OO model...facades. > > Oh man, Tom. You're killing me. I haven't even been able > > to get "createObject" working, yet. > > /me points at CFCDev > Run dude, *ru* ! > > :-) > > -- > Tom Chiverton ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307845 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
Makes sense. Thanks for the explanation, Ian! Rick > -Original Message- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 11:25 AM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > Rick Faircloth wrote: > > Read inline. > > > Thanks for the info, Matt. > > > > I think I've got a handle on those methods. > > > > One thing I still haven't been able to get to work > > is setting up an "init" function for my db in a cfc. > > > > Can you explain how that work and show me an example > > of the code I need to put in a cfc. > > > > I tried this that someone gave me: > > > > > > > > > > > > > > > > But that doesn't make sense to me. My dsn is set > > in application.cfm like so: cfset application.dsn = "myDB". > > So why, "variables.dsn" above? > > > The 'variables' scope inside of a CFC is the private, global scope of > the component. Data in this scope is accessible to any function or code > inside the CFC but not by anything outside the CFC, i.e. the calling > page. The 'this' scope is also global, but it is also public meaning > that it can be read and modified by code outside of the CFC. Many > people consider this to be poor encapelization of data and recommend > against using it. They also recommended that a component should not use > data that is not contained with-in it. So it is considered poor > practice to have a component rely on something like the application > scope. So most of us would pass the data in, often with this defacto > constructor function named 'init' so that it is contained within the > object and does not rely on outside data. > > You can have trouble with things like the application scope when you > move CFC to different places in the file system so that the may not be > under the 'application' has ColdFusion sees it and thus does not have > access to that application scope anymore. > > > I just don't understand what the code is doing. > > Why is variables.dsn being set to be the value of > > arguments.dsn? And what exactly does "cfreturn this" do? > > > Arguments is the scope of the data passed in with the function call. By > transferring it to the variables scope allows for this data to pesist > for the life of the component, beyond the end of this function call. > The return this returns 'this' instigated component to the calling code > so that it can be stored and used later. > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307844 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
On Friday 20 Jun 2008, Ian Skinner wrote: > Tom Chiverton wrote: > > In CF9 this 'init' method is now a concrete constructor that CF will > > invoke > > CF9!?! What is this product you speak of? Is this just descriptions or > is there code that can be played with by us mere mortals someplace? Various blogs on Adobe Feeds have been reporting the CFUnited keynote news... -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307839 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
Tom Chiverton wrote: > In CF9 this 'init' method is now a concrete constructor that CF will invoke > CF9!?! What is this product you speak of? Is this just descriptions or is there code that can be played with by us mere mortals someplace? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307837 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
On Friday 20 Jun 2008, Ian Skinner wrote: > scope. So most of us would pass the data in, often with this defacto > constructor function named 'init' so that it is contained within the In CF9 this 'init' method is now a concrete constructor that CF will invoke for you. Dunno how it'll cope with legacy code yet though... maybe it only auto runs no argument constructors... -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307836 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
On Fri, Jun 20, 2008 at 10:10 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Can you explain how that work and show me an example > of the code I need to put in a cfc. > > I tried this that someone gave me: > > > > > > > > But that doesn't make sense to me. My dsn is set > in application.cfm like so: cfset application.dsn = "myDB". > So why, "variables.dsn" above? > > I just don't understand what the code is doing. > Why is variables.dsn being set to be the value of > arguments.dsn? And what exactly does "cfreturn this" do? > The idea here is to keep you cfc separate from the application so it is more re-usable. It is good practice to not reference application scope (or form or session, etc.) directly in your cfc (there are always exceptions to this, as Tom mentioned a facade earlier). But in keeping it simple, this init function is receiving the dsn as an argument and putting it in the variables scope so that the cfc does not have any knowledge of the application scope. When you do that is telling the server to create a new instance. This instance will be put in the server memory. By using , the instance is returned to whatever calls it. In other words, the variable "myNewInstance" holds a reference to that object. If you have the basic setup working, try a cfdump on myObj. You'll see what looks like a structure output of all the methods defined for that object. Some folks like to also add a "dump" method to their cfcs. With that, you can do this: That will show you the values that are held within the variables scope (doing this you will also see each function definition). I just got Ian's post. He explains the different scopes. I think one of the main things you'll need to grasp first is that when you create this object, it exists in memory and holds data and functions with which you can interact. Because of this, you'll want to think about what scope an object should exist within. An object that holds information specific to one user makes sense to be in session scope. But an object that can be used by many users should probably be in application scope. This is one of the advantages Object Oriented programming. Otherwise you are just creating and destroying objects for every request and may as well do it inline or with cfincluded files. Hope that helps. Keep the questions coming though. There are also many blog entries on some of these basics. Adrian Moreno's blog comes to mind first. He did a whole series. http://www.iknowkungfoo.com/blog/index.cfm/2007/8/22/Object-Oriented-Coldfusion--1--Intro-to-Objectcfc -- Matt Williams "It's the question that drives us." ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307834 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
On Friday 20 Jun 2008, Rick Faircloth wrote: > > In a more complex OO model...facades. > Oh man, Tom. You're killing me. I haven't even been able > to get "createObject" working, yet. /me points at CFCDev Run dude, *ru* ! :-) -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307833 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
Rick Faircloth wrote: Read inline. > Thanks for the info, Matt. > > I think I've got a handle on those methods. > > One thing I still haven't been able to get to work > is setting up an "init" function for my db in a cfc. > > Can you explain how that work and show me an example > of the code I need to put in a cfc. > > I tried this that someone gave me: > > > > > > > > But that doesn't make sense to me. My dsn is set > in application.cfm like so: cfset application.dsn = "myDB". > So why, "variables.dsn" above? > The 'variables' scope inside of a CFC is the private, global scope of the component. Data in this scope is accessible to any function or code inside the CFC but not by anything outside the CFC, i.e. the calling page. The 'this' scope is also global, but it is also public meaning that it can be read and modified by code outside of the CFC. Many people consider this to be poor encapelization of data and recommend against using it. They also recommended that a component should not use data that is not contained with-in it. So it is considered poor practice to have a component rely on something like the application scope. So most of us would pass the data in, often with this defacto constructor function named 'init' so that it is contained within the object and does not rely on outside data. You can have trouble with things like the application scope when you move CFC to different places in the file system so that the may not be under the 'application' has ColdFusion sees it and thus does not have access to that application scope anymore. > I just don't understand what the code is doing. > Why is variables.dsn being set to be the value of > arguments.dsn? And what exactly does "cfreturn this" do? > Arguments is the scope of the data passed in with the function call. By transferring it to the variables scope allows for this data to pesist for the life of the component, beyond the end of this function call. The return this returns 'this' instigated component to the calling code so that it can be stored and used later. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307832 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Thanks for the info, Matt. I think I've got a handle on those methods. One thing I still haven't been able to get to work is setting up an "init" function for my db in a cfc. Can you explain how that work and show me an example of the code I need to put in a cfc. I tried this that someone gave me: But that doesn't make sense to me. My dsn is set in application.cfm like so: cfset application.dsn = "myDB". So why, "variables.dsn" above? I just don't understand what the code is doing. Why is variables.dsn being set to be the value of arguments.dsn? And what exactly does "cfreturn this" do? I'm just lacking in my understanding, I think, of what the CFC is providing for the calling page with this type of code. Perhaps it's time to get the CF8 version of CFWACK. (Last one I got was for CF4.5... :o) Rick > -Original Message- > From: Matt Williams [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 10:33 AM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > >> On Friday 20 Jun 2008, Rick Faircloth wrote: > >> > What would be the best way to pass variables to a CFC > >> > for processing? > > To go back to this question, there are several methods for passing in > variables. There is no really best way, it is more a matter of > personal preference. Besides the use of cfinvoke, here are some ways > to do it with . > > 1) Named arguments. Here you actually specify the argument names when > you call a method > mySecondArgument=form.moreData) /> > > 2) Unnamed arguments. Here you just put in the variables in the same > order in which you specify the arguments in the function. > > > 3) Argument collection. Here you first build up a structure that holds > the arguments. Structure keys match the argument names. > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307830 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
>> On Friday 20 Jun 2008, Rick Faircloth wrote: >> > What would be the best way to pass variables to a CFC >> > for processing? To go back to this question, there are several methods for passing in variables. There is no really best way, it is more a matter of personal preference. Besides the use of cfinvoke, here are some ways to do it with . 1) Named arguments. Here you actually specify the argument names when you call a method 2) Unnamed arguments. Here you just put in the variables in the same order in which you specify the arguments in the function. 3) Argument collection. Here you first build up a structure that holds the arguments. Structure keys match the argument names. -- Matt Williams "It's the question that drives us." ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307828 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
> In a more complex OO model...facades. Oh man, Tom. You're killing me. I haven't even been able to get "createObject" working, yet. > -Original Message- > From: Tom Chiverton [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 9:38 AM > To: CF-Talk > Subject: Re: Waaa! Why won't my CFC work! > > On Friday 20 Jun 2008, Rick Faircloth wrote: > > What would be the best way to pass variables to a CFC > > for processing? > > > > > > > component="c21-ar-sm-homesite.components.manager_authorization" > > > > method="authenticate" > > > > returnVariable="manager_id" > > > > email="#form.email#" > > > > pw="#form.password#" > > :-) > > In a more complex OO model, you might want to look into things like form > (and/or session) facades. > > -- > Tom Chiverton > > > > 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 Halliwells LLP, 3 > Hardman Square, Spinningfields, > Manchester, M3 3EB. 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. > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307827 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
On Friday 20 Jun 2008, Ian Skinner wrote: > I think Tom mistakenly read the code as being part of the > CFC code. Oh no, I was pointing out it was a good thing to do anyway, even if there wasn't something up with the argument name. -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307826 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
Rick Faircloth wrote: > What would be the best way to pass variables to a CFC > for processing? > > Rick I think Tom mistakenly read the code as being part of the CFC code. I know I did when I first looked at the code snippet. You are not accessing the form/url/session scopes inside the CFC but passing them into it through the call. Which is the proper way to do this. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307824 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Waaahhhh! Why won't my CFC work!
On Friday 20 Jun 2008, Rick Faircloth wrote: > What would be the best way to pass variables to a CFC > for processing? > > > > > component="c21-ar-sm-homesite.components.manager_authorization" > > > method="authenticate" > > > returnVariable="manager_id" > > > email="#form.email#" > > > pw="#form.password#" :-) In a more complex OO model, you might want to look into things like form (and/or session) facades. -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307823 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
What would be the best way to pass variables to a CFC for processing? Rick > -Original Message- > From: Tom Chiverton [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2008 6:34 AM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > On Thursday 19 Jun 2008, Charlie Griefer wrote: > > > component="c21-ar-sm-homesite.components.manager_authorization" > > method="authenticate" > > returnVariable="manager_id" > > email="#form.email#" > > pw="#form.password#" > > It's a good idea not to have your CFC depend on the exact name or a > form/url/session parameter anyway. > > -- ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307821 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
On Thursday 19 Jun 2008, Charlie Griefer wrote: > component="c21-ar-sm-homesite.components.manager_authorization" > method="authenticate" > returnVariable="manager_id" > email="#form.email#" > pw="#form.password#" It's a good idea not to have your CFC depend on the exact name or a form/url/session parameter anyway. -- Tom Chiverton 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307820 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
The method needs to return THIS or Rick's code in the previous post will fail. On Fri, Jun 20, 2008 at 5:34 AM, Matt Williams <[EMAIL PROTECTED]> wrote: > On Thu, Jun 19, 2008 at 4:27 PM, Rick Faircloth > <[EMAIL PROTECTED]> wrote: >> That was it! Thanks Josh and Mark. >> >> Ok... concerning createObject, etc. >> >> I tried again with this line: >> >> > "c21-ar-sm-homesite.components.manager_authorization").init(application.dsn) >> /> >> >> but I got this error: >> >> The method init was not found in component >> E:\Inetpub\webroot\c21-ar-sm-homesite\components\manager_authorization.cfc. >> >> How do I write the "init" method for the db in the component? > > > > > -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307813 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
On Thu, Jun 19, 2008 at 4:27 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > That was it! Thanks Josh and Mark. > > Ok... concerning createObject, etc. > > I tried again with this line: > > "c21-ar-sm-homesite.components.manager_authorization").init(application.dsn) > /> > > but I got this error: > > The method init was not found in component > E:\Inetpub\webroot\c21-ar-sm-homesite\components\manager_authorization.cfc. > > How do I write the "init" method for the db in the component? > (And by the way, where should the line I wrote above, " but put? In the cfc? In my application.cfm? In the calling page? If you want to use your managers component throughout the application, then put it in app.cfm, probably with Then any page in your app can do -- Matt Williams "It's the question that drives us." ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307792 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
That was it! Thanks Josh and Mark. Ok... concerning createObject, etc. I tried again with this line: but I got this error: The method init was not found in component E:\Inetpub\webroot\c21-ar-sm-homesite\components\manager_authorization.cfc. How do I write the "init" method for the db in the component? (And by the way, where should the line I wrote above, " -Original Message- > From: Mark Kruger [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2008 4:48 PM > To: CF-Talk > Subject: RE: Waaa! Why won't my CFC work! > > I think you need to use soemthing other than "password" - isn't that a named > attribute of cfinvoke? > > Meanwhile I can't every debug these things using the 1 step "cfinvoke". I > always turn to createobject. > > > createobject("component","c21-ar-sm-homesite.components.manager_authorizatio > n")/> > > > > password=form.password)/> > > #manager_id# > > > Mark A. Kruger, CFG, MCSE > (402) 408-3733 ext 105 > www.cfwebtools.com > www.coldfusionmuse.com > www.necfug.com > > -Original Message- > From: Rick Faircloth [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2008 3:29 PM > To: CF-Talk > Subject: Waaa! Why won't my CFC work! > > Now, I feel better... (Oh, I so wanted, for the sake of time, to just use my > common login scheme using cfinclude... but I *had* to try a cfc...) > > Assuming my form does have the password formfield in it... > > Why would I get the error: (When I cfdump the form scope, it shows > "password" > as one of the fields...) > > > The PASSWORD parameter to the authenticate function is required but was not > passed in. > > The error occurred in E:\Inetpub\webroot\c21-ar-sm-homesite\cfm\login.cfm: > line 41 > > 39 : method="authenticate" > 40 : returnVariable="manager_id" > 41 : email="#form.email#" > 42 : password="#form.password#"> > 43 : > > > from this code: ( and yes, I'm working on instantiating...) > > > component="c21-ar-sm-homesite.components.manager_authorization" > method="authenticate" > returnVariable="manager_id" > email="#form.email#" > password="#form.password#"> > > > > > > > > SELECT manager_id > FROM managers > WHERE email = '#arguments.email#' > AND password = '#arguments.password#' > > > > > > > > > > ??? > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307789 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Waaahhhh! Why won't my CFC work!
Thanks Charlie... that was it... didn't know about the reserved word part... Rick > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2008 4:39 PM > To: CF-Talk > Subject: Re: Waaahhhh! Why won't my CFC work! > > i'm not real familiar with cfinvoke, but could the tag be thinking > that the "password" attribute is meant as a password to a web service > (i.e. a "built in" attribute) rather than an argument being passed? > > for kicks and grins, try this: > > component="c21-ar-sm-homesite.components.manager_authorization" > method="authenticate" > returnVariable="manager_id" > email="#form.email#" > pw="#form.password#" > /> > > then change your from "password" to "pw". ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307786 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
you can always use -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307785 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
i'm not real familiar with cfinvoke, but could the tag be thinking that the "password" attribute is meant as a password to a web service (i.e. a "built in" attribute) rather than an argument being passed? for kicks and grins, try this: then change your from "password" to "pw". On Thu, Jun 19, 2008 at 1:28 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Now, I feel better... (Oh, I so wanted, for the sake of time, to just use > my common login scheme using cfinclude... but I *had* to try a cfc...) > > Assuming my form does have the password formfield in it... > > Why would I get the error: (When I cfdump the form scope, it shows "password" > as one of the fields...) > > > The PASSWORD parameter to the authenticate function is required but was not > passed in. > > The error occurred in E:\Inetpub\webroot\c21-ar-sm-homesite\cfm\login.cfm: > line 41 > > 39 :method="authenticate" > 40 :returnVariable="manager_id" > 41 :email="#form.email#" > 42 :password="#form.password#"> > 43 : > > > from this code: ( and yes, I'm working on instantiating...) > >component="c21-ar-sm-homesite.components.manager_authorization" >method="authenticate" >returnVariable="manager_id" >email="#form.email#" >password="#form.password#"> > > > > > > > >SELECT manager_id >FROM managers >WHERE email = '#arguments.email#' >AND password = '#arguments.password#' > > > > > > > > > > ??? > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307781 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Waaahhhh! Why won't my CFC work!
I think you need to use soemthing other than "password" - isn't that a named attribute of cfinvoke? Meanwhile I can't every debug these things using the 1 step "cfinvoke". I always turn to createobject. #manager_id# Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 3:29 PM To: CF-Talk Subject: Waaa! Why won't my CFC work! Now, I feel better... (Oh, I so wanted, for the sake of time, to just use my common login scheme using cfinclude... but I *had* to try a cfc...) Assuming my form does have the password formfield in it... Why would I get the error: (When I cfdump the form scope, it shows "password" as one of the fields...) The PASSWORD parameter to the authenticate function is required but was not passed in. The error occurred in E:\Inetpub\webroot\c21-ar-sm-homesite\cfm\login.cfm: line 41 39 :method="authenticate" 40 :returnVariable="manager_id" 41 :email="#form.email#" 42 :password="#form.password#"> 43 : from this code: ( and yes, I'm working on instantiating...) SELECT manager_id FROM managers WHERE email = '#arguments.email#' AND password = '#arguments.password#' ??? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:30 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Waaahhhh! Why won't my CFC work!
> Assuming my form does have the password formfield in it... > > Why would I get the error: (When I cfdump the form scope, it shows > "password" > as one of the fields...) This one got me before, too. "Password" is an implicit attribute of the tag, used I think when calling a webservice. You'll need to name your argument something else, like "pass" or "pw". -- Josh - Original Message - From: "Rick Faircloth" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, June 19, 2008 1:28 PM Subject: Waaa! Why won't my CFC work! > Now, I feel better... (Oh, I so wanted, for the sake of time, to just use > my common login scheme using cfinclude... but I *had* to try a cfc...) > > Assuming my form does have the password formfield in it... > > Why would I get the error: (When I cfdump the form scope, it shows > "password" > as one of the fields...) > > > The PASSWORD parameter to the authenticate function is required but was > not passed in. > > The error occurred in E:\Inetpub\webroot\c21-ar-sm-homesite\cfm\login.cfm: > line 41 > > 39 : method="authenticate" > 40 : returnVariable="manager_id" > 41 : email="#form.email#" > 42 : password="#form.password#"> > 43 : > > > from this code: ( and yes, I'm working on instantiating...) > > component="c21-ar-sm-homesite.components.manager_authorization" > method="authenticate" > returnVariable="manager_id" > email="#form.email#" > password="#form.password#"> > > > > > > > > SELECT manager_id > FROM managers > WHERE email = '#arguments.email#' > AND password = '#arguments.password#' > > > > > > > > > > ??? > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307776 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4