Re: CFLOCATION inside CFCs

2005-03-04 Thread S . Isaac Dealey
This is another 'what are you doing' and 'does it sound right' topics. I'm cleaning up some CFCs here and the programmer put some CFLOCATION tags inside the CFC. Anyone else do this? Anyone see a problem with it? Personally, I'm not happy about it as it breaks encapsulation and makes

RE: CFLOCATION inside CFCs

2005-03-04 Thread Ian Skinner
I use this for CFC's that are meant to be the action of forms. This is actually shown in the documentation. FORM.cfm form action=processing.cfc ... input type=hidden name=method value=methodName /form PROCESSING.cfc cfcomponent cffunction name=methodName ... Do everything I want to

RE: CFLOCATION inside CFCs

2005-03-04 Thread Calvin Ward
For some reason posting to a cfc like that doesn't feel right to me. But that's just my preference. - Calvin -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 12:12 PM To: CF-Talk Subject: RE: CFLOCATION inside CFCs I use this for CFC's

RE: CFLOCATION inside CFCs

2005-03-04 Thread Michael Dinowitz
But in this case your accessing a CFC directly (where the method is access=remote). I use this for CFC's that are meant to be the action of forms. This is actually shown in the documentation. FORM.cfm form action=processing.cfc ... input type=hidden name=method value=methodName /form

RE: CFLOCATION inside CFCs

2005-03-04 Thread Ian Skinner
Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 9:20 AM To: CF-Talk Subject: RE: CFLOCATION inside CFCs But in this case your accessing a CFC

RE: CFLOCATION inside CFCs

2005-03-04 Thread Connie DeCinko
Subject: RE: CFLOCATION inside CFCs I use this for CFC's that are meant to be the action of forms. This is actually shown in the documentation. FORM.cfm form action=processing.cfc ... input type=hidden name=method value=methodName /form PROCESSING.cfc cfcomponent cffunction name=methodName

RE: CFLOCATION inside CFCs

2005-03-04 Thread Ian Skinner
[mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 9:32 AM To: CF-Talk Subject: RE: CFLOCATION inside CFCs I prefer to use a .cfm for my form action that interacts with the cfc. Keeps the cfc a black box. Then the .cfm decides what to do if the cfc action succeeds

RE: CFLOCATION inside CFCs

2005-03-04 Thread S . Isaac Dealey
That is exactly true, and that is the only time *I* would consider using a cflocation in a CFC. I kind of feel it's between my UI layer and my Logic layer. I've only just started on figuring out OOD/OOA so I'm working from the inside out. When I'm better and doing OO at all levels, then I

RE: CFLOCATION inside CFCs

2005-03-04 Thread Michael T. Tangorre
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] cfparam name=attributes.objectid type=numeric default=0 cfif objectid... do stuff .../cfif In my case the attributes scope is a combination of form and url variables... And at a first glance this looks really good because it's nice and

Re: CFLOCATION inside CFCs

2005-03-04 Thread Greg Luce
I can't see that being a problem if you are incorporating proper serverside form validation. Serverside you should be checking all validation rules, does it exist, is it the required datatype, the required length... On Fri, 4 Mar 2005 12:42:38 -0500, S. Isaac Dealey [EMAIL PROTECTED] wrote:

Re: CFLOCATION inside CFCs

2005-03-04 Thread Sean Corfield
On Fri, 4 Mar 2005 11:55:53 -0500, Michael Dinowitz [EMAIL PROTECTED] wrote: This is another 'what are you doing' and 'does it sound right' topics. I'm cleaning up some CFCs here and the programmer put some CFLOCATION tags inside the CFC. Anyone else do this? Anyone see a problem with it?

RE: CFLOCATION inside CFCs

2005-03-04 Thread Michael Dinowitz
The example I have is a redirect embedded inside business logic. Call a page, call the object, do a bunch of stuff, have the object throw you somewhere else. Not dedicated, not validation, just a part of the code. I'm going to pull it out and put it into it's own method with solid validation and

Re: CFLOCATION inside CFCs

2005-03-04 Thread Sean Corfield
On Fri, 4 Mar 2005 13:40:15 -0500, Michael Dinowitz [EMAIL PROTECTED] wrote: The example I have is a redirect embedded inside business logic. Call a page, call the object, do a bunch of stuff, have the object throw you somewhere else. Not dedicated, not validation, just a part of the code.

Re: CFLOCATION inside CFCs

2005-03-04 Thread S . Isaac Dealey
Well the comment is much less about form variables (which would be validated in other ways) than it is about url variables. If a page is going to use url variables at all, there is always the risk of it producing a CF error if a user provides a url variable that's inappropriate. Some of this can

RE: CFLOCATION inside CFCs

2005-03-04 Thread S . Isaac Dealey
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] cfparam name=attributes.objectid type=numeric default=0 cfif objectid... do stuff .../cfif In my case the attributes scope is a combination of form and url variables... And at a first glance this looks really good because it's nice and

RE: CFLOCATION inside CFCs

2005-03-04 Thread Connie DeCinko
EXACTLY how I am now coding my apps. So far I have not seen any mention of how this helps allow for code reuse and how much easier for someday when you want to talk to that CFC via a Flash form or web service. -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sounds

RE: CFLOCATION inside CFCs

2005-03-04 Thread Michael Dinowitz
My only concern at the moment is taking a freekin huge application written in a multitude of styles and 1. remove excess code 2. clean up logic 3. allow all sites using the code to work well 4. run fast Code reuse and external calls are after cleanup. One thing I've had to do is move all queries