On 8/26/05, Brian Kotek <[EMAIL PROTECTED]> wrote: > In fact I know I'm on a posting blitz, but if you handled the creation > of the TO, the BO, and validation check in the manager CFC, you could > actually simplify it to this: > > <fuseaction name="storeContact"> > <invoke object="application.contactManager" > methodcall="save( attributes )" > returnVariable="result" /> > <if condition="#result.status#"> > <true> > <do action="success" /> > </true> > <false> > <do action="showContactForm" /> > </false> > </if> > </fuseaction>
This code looks even better (shorter), but how would you let the user know of the errors in the form if the validation fails? Thanks. ---------------------------------------------------------- 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]
