RE: Methods not found.

2009-11-26 Thread Chung Chow
Thanks for all the help! I figured it out. Well, not really. I just moved everything around back to what I needed and it just worked. I might have maybe spelled variables wrong or something. LOL So odd. 2009/11/26 Chung Chow cyc...@annex.net Hi all, I'm trying to

Re: Methods not found.

2009-11-26 Thread Dave Watts
Hi Kevin. I've read that whole site a couple of days ago.  Good stuff. But apart from making these utilities load in an application scope, I was trying to find a better way accesing them object-wide I guess.  I'm worried aboout having to load all these utilities objects in a application

Re: Methods not found.

2009-11-25 Thread Charlie Stell
I believe you would want : variables.errorMsg = createObject(component, com.util.errorMessages).init(); On Wed, Nov 25, 2009 at 3:36 PM, Chung Chow cyc...@annex.net wrote: Hi all, I'm trying to instantiate an object either in the psuedo-contructor or init of my cfc as a variable so I can

RE: Methods not found.

2009-11-25 Thread Chung Chow
Gah, sorry. The sample is wrong. The psuedo constructor would look like this and in the cffunction would be called by the variables scope. variables.errorMsg.addErrorMsg() Sorry. was copy/pasting. cfcomponent displayname=feeds output=false ... cfscript variables.errorMsg =

RE: Methods not found.

2009-11-25 Thread Chung Chow
-talk Subject: Re: Methods not found. I believe you would want : variables.errorMsg = createObject(component, com.util.errorMessages).init(); On Wed, Nov 25, 2009 at 3:36 PM, Chung Chow cyc...@annex.net wrote: Hi all, I'm trying to instantiate an object either in the psuedo

Re: Methods not found.

2009-11-25 Thread Matt Quackenbush
You should not be var'ing your constructor variables. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: Methods not found.

2009-11-25 Thread Charlie Stell
Id check the following: That your referring to the CFC in the same way you are defining them. (since you say it works when defining with teh functions, I think this is most likely) The method-access on the other CFCs. That the init function of external CFCs are returning this. You could also

Re: Methods not found.

2009-11-25 Thread Charlie Stell
Id check the following: That your referring to the CFC in the same way you are defining them. (since you say it works when defining with teh functions, I think this is most likely) See if there is any difference made by instantiating them within the init function. The method-access on the other

RE: Methods not found.

2009-11-25 Thread Chung Chow
-Original Message- From: Charlie Stell [mailto:charlie.st...@gmail.com] Sent: Wednesday, November 25, 2009 1:03 PM To: cf-talk Subject: Re: Methods not found. Id check the following: That your referring to the CFC in the same way you are defining them. (since you say it works when

Re: Methods not found.

2009-11-25 Thread Kevan Stannard
I'm not sure if this is the best way of going about it so if anyone has a better idea, I'd like to hear about it. :) You may like to take a look at 'dependecy injection' techniques http://learn.objectorientedcoldfusion.org/wiki/Dependency_Injection 2009/11/26 Chung Chow cyc...@annex.net

Re: Methods not found.

2009-11-25 Thread Charlie Stell
Try the following - Add a function to your cfc that will return variables.X - X being whatever instantiated cfc you cant call the function of. Dump the results of new function - this should help you debug. ~| Want to reach

RE: Methods not found.

2009-11-25 Thread Chung Chow
. -Original Message- From: Kevan Stannard [mailto:ke...@stannard.net.au] Sent: Wednesday, November 25, 2009 1:56 PM To: cf-talk Subject: Re: Methods not found. I'm not sure if this is the best way of going about it so if anyone has a better idea, I'd like to hear about it. :) You may

Re: Methods not found.

2009-11-25 Thread Kevan Stannard
sorting through all the damn terminology and concepts. -Original Message- From: Kevan Stannard [mailto:ke...@stannard.net.au] Sent: Wednesday, November 25, 2009 1:56 PM To: cf-talk Subject: Re: Methods not found. I'm not sure if this is the best way of going about it so