> In HTML INPUT tags there are no spaces -- good eyes. Fixed.

> init() for DSN - good idea

>Request variables in the CFC.

Indeed some my find uncomfortable. Here is my approach.
All actor messages either to or from exist in a common namespace, Request.IN or Request.OUT. Once a variable has space, use the space.
Case - ActorIn and ActorOUT - These are basic library functions and just replace hand coding the same in the application.
Case - Request.OUT in query function. This is a generation option so it can be selected. When used with ActorOUT, the form will have variable value for input tags.


        Example of using wrapper function calls  to add a contact:
          <cfscript>
              create contact component object
               contact.actorin
               contact.create
               contact.form
               contact.actorout
                       contact.endform
          </cfscript>


Joseph


At 08:58 AM 3/10/2004, you wrote:
One obvious thing for the init() method is to pass in the DSN and store it
as an instance variable -- that would prevent you from having to pass it on
the other methods (though, you could keep it as an optional argument,
perhaps).

A random comment -- I bristled a bit at your use of the Request scope inside
the CFC.  Admittedly, it's a reflexive reaction to any reference of external
variables.  But, why not use private instance data there?  Another minor
thing -- I also notice in the generated HTML INPUT tags there are no spaces
between tag attributes, but you do have spaces for attributes in the rest of
the generated code.


> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Joseph Flanigan > Sent: Wednesday, March 10, 2004 7:20 AM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] CFC Code generator - Question > > > The Table Wrapper CRUD Wizard generates a CFC but with no init() function. > > Should I add an init() function? > If so, in the case of the table wrapper, what should be in the init()? > > Joseph

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]


------------------------------------------
Switch_box
www.Switch-box.org
MediaFirm, Inc.
PO Box 2171
Loveland, CO 80539

[EMAIL PROTECTED]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to