If you decide not to go down the Mach II path, I would suggest you have a basic CFC that can take field definitions (via an addField method maybe), it could also take the name of a table you want your data to go into, then you can use the stored definitions to create both the form (maybe have a method call toHTMLForm that returns a string with all the form HTML in it)
Mixing logic and presentation like this can get you into trouble - the CFC can't possibly know how the form should be displayed under all circumstances so whilst you *can* do this, I don't recommend it since it just isn't flexible enough.
But, ultimately, you are going to be better of using a framework (like Mach II) to ensure you stay in an OO frame of mind
Now that I agree with!
Sean A Corfield -- http://www.corfield.org/blog/
"There are no solutions, only trade-offs." -- Thomas Sowell
----------------------------------------------------------
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]
