I've found that augmenting attribute data for <cfproperty> tag is very flexible. I've developed an application for generating CFCs called cfcPowerTools. cfcPowerTools augments the <cfproperty> tag with meta data about the property. cfcPowerTools will generate a CFC from an existing database table or generate the database table from CFC's properties. You also have the option of making the CFC standalone which removes all of the additional <cfproperty> meta data from the standalone CFC - it's just as if you typed the CFC by hand.
You can get into some cool functionality with cfcPowerTools like composition and creating relationships between CFCs. cfcPowerTools allows you to describe how the property is viewed by the database and how it is viewed by the data entry form - all with additional <cfproperty> meta data. In short, you can generate the CFC, data entry form, and database table all at the same time. Once you have constructed your CFC and its environment (table and form), you can make CFC standalone meaning it no longer relies upon cfcPowerTools. cfcPowerTools also supports round trip editing. http://www.cfcpowertools.com Thanks Tom Schreck 972-361-9943 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Corfield Sent: Tuesday, April 26, 2005 1:29 AM To: [email protected] Subject: Re: [CFCDev] Grabbing the metadata from the extended component On 4/25/05, Pat Branley <[EMAIL PROTECTED]> wrote: > ive gone down the track of using cfproperty before and have found its much > nicer to load static information either at run-time in variables scope (then > inheritance is much easier to deal with) OR by loading the cfc information > from an XML file. Yes, I'll second that... <cfproperty> is really not intended for this sort of stuff and I wouldn't recommend the approach you are using (<cfproperty> is for web services, period). Using XML for component descriptors is a much better approach. -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
