On Mon, 22 Nov 2004 09:31:27 -0600, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> I'm lost with what happens after the validate() is called.  Does
> validate() return a boolean success value, or do you call another method
> such as isValidated()?

validate() returns a boolean and the program logic branches on that.
For example, in Mach II you might use a filter to run validate() and
then abort the current event (and announce a new one) if the bean is
not valid.

> However, if there are errors, why go to the trouble of storing the data
> in a bean, then validate it when you could validate it before storing it
> in the bean?  Is the bean where most of the validation logic should
> exist?

Because you might want to repopulate a form from the bean.
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 1 invite

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
----------------------------------------------------------
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 
[EMAIL PROTECTED]

Reply via email to