|
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] |
- RE: [CFCDev] MVC and GetPageContext.Forward() Dawson, Michael
- Re: [CFCDev] MVC and GetPageContext.Forward() Sean Corfield
- Re: [CFCDev] MVC and GetPageContext.Forward(... Peter J. Farrell
- Re: [CFCDev] MVC and GetPageContext.Forward(... Peter J. Farrell
- Re: [CFCDev] MVC and GetPageContext.Forw... Sean Corfield
- RE: [CFCDev] MVC and GetPageContext.Forward(... Roland Collins
- RE: [CFCDev] MVC and GetPageContext.Forward() Barry Beattie
- RE: [CFCDev] MVC and GetPageContext.Forward(... Roland Collins
- RE: [CFCDev] MVC and GetPageContext.Forward() Barry Beattie
- RE: [CFCDev] MVC and GetPageContext.Forward() Anthony Israel-Davis
