On Fri, 28 Jan 2005 14:24:29 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> (nearly OO) approach to development. Lets say that I develop an
> application that I sell to someone and they don't like the way my
> forms are written / presented -- they want to add or remove fields.

But adding / removing fields is going to reflect changes to the
database and the business processing within the app so, frankly, the
form tag is the least of your worries...

> Just did. The answer is actually still "no". By automatic validation
> I'm not referring to having an attribute in the tag which allows you
> to specify how a field is validated -- I'm talking about validating a
> field to a given type _without_ specifying the type.

But databases don't contain phone numbers, email addresses and social
security numbers as types so you can't deduce that sort of validation
anyway.

> <tap:validate type="required">
>   <input name="offerprice" />
>   <input name="availabledate" />
> </tap:validate>
> 
> the <tap:validate> tag allows you to indicate that all contained input
> elements are required at one time without needing to specify
> validation for each input element individually.

Ah, then the answer is yes I believe and I think Tim or Ben even
demo'd this functionality...

> Going back to the previous question about needing the context of the
> cfform tag for cfinput elements -- if I've sold an application to
> someone who decides they don't want to use a form field which is
> required by default, they can remove the required input element
> without affecting the form's validation (and without editing a single
> character of my code) -- that is, the form only validates what it
> contains at the time it is validated.

Seems to me that's how CF's validation works - if you remove the
required input element, the automatic validation will no longer
require that field to be present (since the validation is derived from
the fields themselves rather than the form per se).
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 5 invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192139
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to