This is good stuff, Roland.
 
My little trick is to use:
<cfif structKeyExists(form, "fieldNames")>form was submitted</cfif>
 
That way I don't need to set a hidden form field.
 
M!ke


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roland Collins
Sent: Tuesday, June 14, 2005 6:45 PM
To: [email protected]
Subject: Re: [CFCDev] MVC and GetPageContext.Forward()

This is slightly off topic in terms of MVC and the GetPageContext() methodology, but I thought it might be useful anyway, given the “validation” slant we’ve started to take.

 

All of our forms post to themselves, and the start of every form page is the validation routine.  Validation itself is performed by a validation object.  I find keeping the handling logic in the form page itself to be beneficial in terms of encapsulating the function of the page itself.  A typical form in our application looks like this:

 

----------------------------------------------------------
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).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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

Reply via email to