Tom,

What we usually do is to write our custom validation routines in
OurRecordValidator.cfc and if any errors are caught e.g. passwords do not
match, we do something like this

function name="validateConfirmPassword"
  if record.getNewPassword() neq record.getConfirmPassword
       set arguments.errorCollection.addError( '
UserRecord.PASSWORD.DONOTMATCH' )
  end if

The error UserRecord.Password.PasswordDoNotMatch can be defined in
userRecord.xml under dictionary folder.

Thanks



On 3/5/07, Thomas Messier <[EMAIL PROTECTED]> wrote:

Well I'll be damned, I think I figured this one out! I guess after running
the validate method some new folders got created, and now I'm getting a
hang
of it. But I guess I could still clear some doubts. I'm adding my
validation
inside my Record object, but there's also a Validator object that can be
customized. Should I really be overriding the validate method in the
Record
object, which is what I saw in some tutorials, or is there something new
with the Validator cfc's that I should know of?

-TM

-----Original Message-----
From: Thomas Messier [mailto:[EMAIL PROTECTED]
Sent: Monday, March 05, 2007 7:55 PM
To: '[email protected]'
Subject: Validation help

I've been trying to figure out how to use the validation but the more I
look
online the more I get confused. I've found some tutorials/examples, but
they
all seem to refer to things that I can't find in my installation. I'm not
really sure where dictionary files are supposed to go since I don't find
any
for my record cfcs. I also see references to rvdata folders with Validator
components that I can't seem to find. Can somebody just point me in the
right direction, I ought to be able to figure things out if I can get the
basics down. Thanks.

-TM



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --




--
Qasim Rasheed
Certified Advance ColdFusion MX Developer
(IM qasimrasheed AT yahoo, msn or GTalk)


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to