wow, what a brain fart, thanks Doug!!!

On 9/1/06, Doug Sims <[EMAIL PROTECTED]> wrote:
You have to pass the error collection and record to super().....

                        <CFSET super.validate(arguments.weatherRecord, arguments.ErrorCollection) />

I have a post about this on my site:
http://evenamonkey.com/reactor_tip_super_validate--2006--doug_sims

Thanks,
Doug

On 9/1/06, Dan Vega < [EMAIL PROTECTED]> wrote:
>
> I have done custom validation in the past but I have come across a problem that I am not quite sure of. Below is an example of extending my validatestudentdob function. When I run this code below to validate the users input, i recieve an error that clientRecord is undifined in arguments. I have done this in other places of my application and it works fine. Does anyone know exactly how this works, maybe I am missing something?
>
>         <cfset session.client.customer.setStudentFirst(form.studentfirst)>
>         <cfset session.client.customer.setStudentLast(form.studentlast)>
>         <cfset session.client.customer.setStudentSSN (form.studentssn)>
>         <cfset session.client.customer.setStudentDOB(form.studentdob)>
>         <cfset session.client.customer.setStudentYOG(form.studentyog)>
>         <cfset session.client.customer.setStudentEmail (form.studentemail)>
>         <cfset session.client.customer.setStudentSex(form.studentsex)>
>
>         <cfset session.client.customer.validate() />
>         <cfset errorCollection = session.client.customer._getErrorCollection ()>
>
> <cffunction name="validatestudentdob" access="public" output="false" returntype="reactor.util.ErrorCollection">
>         <cfargument name="clientRecord" required="true" type=" reactor.project.******.Record.clientRecord">
>         <cfargument name="ErrorCollection" required="false" type=" reactor.util.ErrorCollection" default="#createErrorCollection( arguments.clientRecord._getDictionary())#">
>
>         <cfset super.validatestudentdob()>
>
>         <cfreturn arguments.ErrorCollection>
>     </cffunction>
>
>  --
>
> Dan Vega
> [EMAIL PROTECTED]
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


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




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

Reply via email to