Greetings,

I'm working on our first ModelGlue app, and have modeled it pretty
much identical to the tutorial that Dan has on the NoDans.com
website.  I'm saving a form using the controller.cfc, and utilizing
Service/Gateway/DAO breakdown as was setup in the tutorial.  Here is a
snippet of the controller.cfc code where I'm actually saving the form.
        <cffunction name="HonorsFormSubmitted"  access="public"
returnType="void" output="false" hint="???">
        <cfargument name="event" type="any">
                <cfset var HonorsBean = getModelGlue().getBean("HonorsBean") /
>
        <cfset var HonorsService =
getModelGlue().getBean( "HonorsService") />
            <cfset var HonorsList = HonorsService.getHonorsListActive() />
                <cfset var ErrorStruct = structNew() />
                <cfset var isValid = false />

                <cfset arguments.event.makeEventBean( HonorsBean ) />
                <cfset isValid = HonorsBean.validate (ErrorStruct) />

                <cfif isValid >
                    <cfset HonorsService.saveHonors( HonorsBean ) />
                        <cfset arguments.event.addResult("Success") />
                <cfelse>
                        <cfset arguments.event.setValue("ErrorStruct", 
ErrorStruct) />
                        <cfset arguments.event.addResult("Failure") />
                </cfif>

        </cffunction>

My Issue is that after I save this form, I need to email several
individuals various files/data that they will need.  If the data
validates and then saves, I'm confused how to get the ID of the record
that was just saved, and where I need to place the call to the EMAIL
function.  We are using an Oracle Database for this application.
Should the call to EMAIL be in the isValid CFIF above, and if so, how
do I pass something back from the DAO file that can tell me that it
was CREATED and not UPDATED.

Hope I haven't confused anyone, and thanks in Advance for any help.
I'm still floundering with the ModelGlue concepts, but reading the
tutorials and newsgroups have given us lots of help.

I'm including the BEAN, DAO, GW,MODELGLUE.XML and SERVICE Files in
case they are needed..


 
***********************************************************************************************************************
BEAN ****************************************************************
 
***********************************************************************************************************************

<cfcomponent
        displayname="HonorsBean"
        output="false"
        hint="A bean which models the HonorsBean form.">


        <!---
        PROPERTIES
        --->
        <cfset variables.instance = StructNew() />

        <!---
        INITIALIZATION / CONFIGURATION
        --->
        <cffunction name="init" access="public"
returntype="developers.cliff.honors.model.HonorsBean" output="false">
                <cfargument name="ID" type="numeric" required="false" 
default="0" />
                <cfargument name="SID" type="numeric" required="false" 
default="0" /
>
                <cfargument name="LASTNAME" type="string" required="false"
default="" />
                <cfargument name="FIRSTNAME" type="string" required="false"
default="" />
                <cfargument name="MIDDLEINIT" type="string" required="false"
default="" />
                <cfargument name="ADDRESS1" type="string" required="false"
default="" />
                <cfargument name="ADDRESS2" type="string" required="false"
default="" />
                <cfargument name="CITY" type="string" required="false" 
default="" />
                <cfargument name="STATE" type="string" required="false" 
default="" /
>
                <cfargument name="ZIP" type="string" required="false" 
default="" />
                <cfargument name="COUNTRY" type="string" required="false"
default="" />
                <cfargument name="PHONE" type="string" required="false" 
default="" /
>
                <cfargument name="EMAIL" type="string" required="false" 
default="" /
>
                <cfargument name="ACT_ENGLISH" type="numeric" required="false"
default="0" />
                <cfargument name="ACT_MATH" type="numeric" required="false"
default="0" />
                <cfargument name="ACT_READING" type="numeric" required="false"
default="0" />
                <cfargument name="ACT_SCIENCE" type="numeric" required="false"
default="0" />
                <cfargument name="ACT_COMPOSITE" type="numeric" required="false"
default="0" />
                <cfargument name="SAT_VERBAL" type="numeric" required="false"
default="0" />
                <cfargument name="SAT_MATH" type="numeric" required="false"
default="0" />
                <cfargument name="SAT_TOTAL" type="numeric" required="false"
default="0" />
                <cfargument name="ENTRY_TYPE" type="numeric" required="false"
default="0" />
                <cfargument name="HIGH_SCHOOL_ATTENDED" type="string"
required="false" default="" />
                <cfargument name="PREV_COLLEGE_ATTENDED" type="string"
required="false" default="" />
                <cfargument name="CLASSIFICATION" type="string" required="false"
default="" />
                <cfargument name="GRADUATE_date" type="string" required="false"
default="#Now()#" />
                <cfargument name="GPA" type="numeric" required="false" 
default="0" /
>
                <cfargument name="CLASS_RANKING_SIZE" type="string" 
required="false"
default="" />
                <cfargument name="MAJOR" type="string" required="false" 
default="" /
>
                <cfargument name="MINOR" type="string" required="false" 
default="" /
>
                <cfargument name="CAREER_OBJECTIVE" type="string" 
required="false"
default="" />
                <cfargument name="PERSONAL_STATEMENT" type="string" 
required="false"
default="" />
                <cfargument name="LETTER1" type="string" required="false"
default="" />
                <cfargument name="LETTER2" type="string" required="false"
default="" />
                <cfargument name="HONORS_WORK" type="string" required="false"
default="#Now()#" />
                <cfargument name="DATE_ENTERED" type="string" required="false"
default="#Now()#" />
                <cfargument name="DATE_MODIFIED" type="string" required="false"
default="#Now()#" />
                <cfargument name="ENTERED_BY" type="string" required="false"
default="" />
                <cfargument name="MENTOR_EMAIL1" type="string" required="false"
default="" />
                <cfargument name="MENTOR_EMAIL2" type="string" required="false"
default="" />
                <cfargument name="MENTOR_CODE1" type="string" required="false"
default="" />
                <cfargument name="MENTOR_CODE2" type="string" required="false"
default="" />
                <cfargument name="VALIDREC" type="NUMERIC" required="false"
default="1" />

                <!--- run setters --->
                <cfset setID(arguments.ID) />
                <cfset setSID(arguments.SID) />
                <cfset setLASTNAME(arguments.LASTNAME) />
                <cfset setFIRSTNAME(arguments.FIRSTNAME) />
                <cfset setMIDDLEINIT(arguments.MIDDLEINIT) />
                <cfset setADDRESS1(arguments.ADDRESS1) />
                <cfset setADDRESS2(arguments.ADDRESS2) />
                <cfset setCITY(arguments.CITY) />
                <cfset setSTATE(arguments.STATE) />
                <cfset setZIP(arguments.ZIP) />
                <cfset setCOUNTRY(arguments.COUNTRY) />
                <cfset setPHONE(arguments.PHONE) />
                <cfset setEMAIL(arguments.EMAIL) />
                <cfset setACT_ENGLISH(arguments.ACT_ENGLISH) />
                <cfset setACT_MATH(arguments.ACT_MATH) />
                <cfset setACT_READING(arguments.ACT_READING) />
                <cfset setACT_SCIENCE(arguments.ACT_SCIENCE) />
                <cfset setACT_COMPOSITE(arguments.ACT_COMPOSITE) />
                <cfset setSAT_VERBAL(arguments.SAT_VERBAL) />
                <cfset setSAT_MATH(arguments.SAT_MATH) />
                <cfset setSAT_TOTAL(arguments.SAT_TOTAL) />
                <cfset setENTRY_TYPE(arguments.ENTRY_TYPE) />
                <cfset setHIGH_SCHOOL_ATTENDED(arguments.HIGH_SCHOOL_ATTENDED) 
/>
                <cfset 
setPREV_COLLEGE_ATTENDED(arguments.PREV_COLLEGE_ATTENDED) />
                <cfset setCLASSIFICATION(arguments.CLASSIFICATION) />
                <cfset setGRADUATE_date(arguments.GRADUATE_date) />
                <cfset setGPA(arguments.GPA) />
                <cfset setCLASS_RANKING_SIZE(arguments.CLASS_RANKING_SIZE) />
                <cfset setMAJOR(arguments.MAJOR) />
                <cfset setMINOR(arguments.MINOR) />
                <cfset setCAREER_OBJECTIVE(arguments.CAREER_OBJECTIVE) />
                <cfset setPERSONAL_STATEMENT(arguments.PERSONAL_STATEMENT) />
                <cfset setLETTER1(arguments.LETTER1) />
                <cfset setLETTER2(arguments.LETTER2) />
                <cfset setHONORS_WORK(arguments.HONORS_WORK) />
                <cfset setDATE_ENTERED(arguments.DATE_ENTERED) />
                <cfset setDATE_MODIFIED(arguments.DATE_MODIFIED) />
                <cfset setENTERED_BY(arguments.ENTERED_BY) />
                <cfset setMENTOR_EMAIL1(arguments.MENTOR_EMAIL1) />
                <cfset setMENTOR_EMAIL2(arguments.MENTOR_EMAIL2) />
                <cfset setMENTOR_CODE1(arguments.MENTOR_CODE1) />
                <cfset setMENTOR_CODE2(arguments.MENTOR_CODE2) />
                <cfset setVALIDREC(arguments.VALIDREC) />

                <cfreturn this />
        </cffunction>

        <!---
        PUBLIC FUNCTIONS
        --->


        <cffunction name="getMemento" access="public" returntype="struct"
output="false" >
                <cfreturn variables.instance />
        </cffunction>

        <cffunction name="validate" access="public" returntype="boolean"
output="false">

       <cfargument name="Errors" type="struct" required="true" />

       <cfset var tempErrors = structNew() />

       <cfif NOT len( trim( getSID() ) ) >
          <cfset tempErrors['SID'] = "Please enter a name for your
contact" />
       </cfif>
       <cfif NOT len( trim( getLastName() ) )>
          <cfset tempErrors['LastName'] = "Please Enter a value for
LastName" />
       </cfif>
       <cfif NOT len( trim( getFirstName() ) )>
          <cfset tempErrors['FirstName'] = "Please Enter a value for
FirstName" />
       </cfif>
       <cfif NOT len( trim( getAddress1() ) )>
          <cfset tempErrors['Address1'] = "Please Enter a value for
Address1" />
       </cfif>
       <cfif NOT len( trim( getCity() ) )>
          <cfset tempErrors['City'] = "Please Enter a value for City" /
>
       </cfif>
       <cfif NOT len( trim( getState() ) )>
          <cfset tempErrors['State'] = "Please Enter a value for
State" />
       </cfif>

                <cfif structCount( tempErrors ) >
                        <cfset structAppend( arguments.Errors, tempErrors ) />
                        <cfreturn false />
                <cfelse>
                        <cfreturn true />
                </cfif>

        </cffunction>

        <!---
        ACCESSORS
        --->
        <cffunction name="setID" access="public" returntype="void"
output="false">
                <cfargument name="ID" type="numeric" required="true" />
                <cfset variables.instance.ID = trim(arguments.ID) />
        </cffunction>
        <cffunction name="getID" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.ID />
        </cffunction>

        <cffunction name="setSID" access="public" returntype="void"
output="false">
                <cfargument name="SID" type="numeric" required="true" />
                <cfset variables.instance.SID = trim(arguments.SID) />
        </cffunction>
        <cffunction name="getSID" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.SID />
        </cffunction>

        <cffunction name="setLASTNAME" access="public" returntype="void"
output="false">
                <cfargument name="LASTNAME" type="string" required="true" />
                <cfset variables.instance.LASTNAME = arguments.LASTNAME />
        </cffunction>
        <cffunction name="getLASTNAME" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.LASTNAME />
        </cffunction>

        <cffunction name="setFIRSTNAME" access="public" returntype="void"
output="false">
                <cfargument name="FIRSTNAME" type="string" required="true" />
                <cfset variables.instance.FIRSTNAME = arguments.FIRSTNAME />
        </cffunction>
        <cffunction name="getFIRSTNAME" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.FIRSTNAME />
        </cffunction>

        <cffunction name="setMIDDLEINIT" access="public" returntype="void"
output="false">
                <cfargument name="MIDDLEINIT" type="string" required="true" />
                <cfset variables.instance.MIDDLEINIT = arguments.MIDDLEINIT />
        </cffunction>
        <cffunction name="getMIDDLEINIT" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.MIDDLEINIT />
        </cffunction>

        <cffunction name="setADDRESS1" access="public" returntype="void"
output="false">
                <cfargument name="ADDRESS1" type="string" required="true" />
                <cfset variables.instance.ADDRESS1 = arguments.ADDRESS1 />
        </cffunction>
        <cffunction name="getADDRESS1" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.ADDRESS1 />
        </cffunction>

        <cffunction name="setADDRESS2" access="public" returntype="void"
output="false">
                <cfargument name="ADDRESS2" type="string" required="true" />
                <cfset variables.instance.ADDRESS2 = arguments.ADDRESS2 />
        </cffunction>
        <cffunction name="getADDRESS2" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.ADDRESS2 />
        </cffunction>

        <cffunction name="setCITY" access="public" returntype="void"
output="false">
                <cfargument name="CITY" type="string" required="true" />
                <cfset variables.instance.CITY = arguments.CITY />
        </cffunction>
        <cffunction name="getCITY" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.CITY />
        </cffunction>

        <cffunction name="setSTATE" access="public" returntype="void"
output="false">
                <cfargument name="STATE" type="string" required="true" />
                <cfset variables.instance.STATE = arguments.STATE />
        </cffunction>
        <cffunction name="getSTATE" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.STATE />
        </cffunction>

        <cffunction name="setZIP" access="public" returntype="void"
output="false">
                <cfargument name="ZIP" type="string" required="true" />
                <cfset variables.instance.ZIP = arguments.ZIP />
        </cffunction>
        <cffunction name="getZIP" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.ZIP />
        </cffunction>

        <cffunction name="setCOUNTRY" access="public" returntype="void"
output="false">
                <cfargument name="COUNTRY" type="string" required="true" />
                <cfset variables.instance.COUNTRY = arguments.COUNTRY />
        </cffunction>
        <cffunction name="getCOUNTRY" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.COUNTRY />
        </cffunction>

        <cffunction name="setPHONE" access="public" returntype="void"
output="false">
                <cfargument name="PHONE" type="string" required="true" />
                <cfset variables.instance.PHONE = arguments.PHONE />
        </cffunction>
        <cffunction name="getPHONE" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.PHONE />
        </cffunction>

        <cffunction name="setEMAIL" access="public" returntype="void"
output="false">
                <cfargument name="EMAIL" type="string" required="true" />
                <cfset variables.instance.EMAIL = arguments.EMAIL />
        </cffunction>
        <cffunction name="getEMAIL" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.EMAIL />
        </cffunction>

        <cffunction name="setACT_ENGLISH" access="public" returntype="void"
output="false">
                <cfargument name="ACT_ENGLISH" type="numeric" required="true" />
                <cfset variables.instance.ACT_ENGLISH = 
trim(arguments.ACT_ENGLISH) /
>
        </cffunction>
        <cffunction name="getACT_ENGLISH" access="public"
returntype="numeric" output="false">
                <cfreturn variables.instance.ACT_ENGLISH />
        </cffunction>

        <cffunction name="setACT_MATH" access="public" returntype="void"
output="false">
                <cfargument name="ACT_MATH" type="numeric" required="true" />
                <cfset variables.instance.ACT_MATH = trim(arguments.ACT_MATH) />
        </cffunction>
        <cffunction name="getACT_MATH" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.ACT_MATH />
        </cffunction>

        <cffunction name="setACT_READING" access="public" returntype="void"
output="false">
                <cfargument name="ACT_READING" type="numeric" required="true" />
                <cfset variables.instance.ACT_READING = 
trim(arguments.ACT_READING) /
>
        </cffunction>
        <cffunction name="getACT_READING" access="public"
returntype="numeric" output="false">
                <cfreturn variables.instance.ACT_READING />
        </cffunction>

        <cffunction name="setACT_SCIENCE" access="public" returntype="void"
output="false">
                <cfargument name="ACT_SCIENCE" type="numeric" required="true" />
                <cfset variables.instance.ACT_SCIENCE = 
trim(arguments.ACT_SCIENCE) /
>
        </cffunction>
        <cffunction name="getACT_SCIENCE" access="public"
returntype="numeric" output="false">
                <cfreturn variables.instance.ACT_SCIENCE />
        </cffunction>

        <cffunction name="setACT_COMPOSITE" access="public" returntype="void"
output="false">
                <cfargument name="ACT_COMPOSITE" type="numeric" required="true" 
/>
                <cfset variables.instance.ACT_COMPOSITE =
trim(arguments.ACT_COMPOSITE) />
        </cffunction>
        <cffunction name="getACT_COMPOSITE" access="public"
returntype="numeric" output="false">
                <cfreturn variables.instance.ACT_COMPOSITE />
        </cffunction>

        <cffunction name="setSAT_VERBAL" access="public" returntype="void"
output="false">
                <cfargument name="SAT_VERBAL" type="numeric" required="true" />
                <cfset variables.instance.SAT_VERBAL = 
trim(arguments.SAT_VERBAL) />
        </cffunction>
        <cffunction name="getSAT_VERBAL" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.SAT_VERBAL />
        </cffunction>

        <cffunction name="setSAT_MATH" access="public" returntype="void"
output="false">
                <cfargument name="SAT_MATH" type="numeric" required="true" />
                <cfset variables.instance.SAT_MATH = trim(arguments.SAT_MATH) />
        </cffunction>
        <cffunction name="getSAT_MATH" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.SAT_MATH />
        </cffunction>

        <cffunction name="setSAT_TOTAL" access="public" returntype="void"
output="false">
                <cfargument name="SAT_TOTAL" type="numeric" required="true" />
                <cfset variables.instance.SAT_TOTAL = trim(arguments.SAT_TOTAL) 
/>
        </cffunction>
        <cffunction name="getSAT_TOTAL" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.SAT_TOTAL />
        </cffunction>

        <cffunction name="setENTRY_TYPE" access="public" returntype="void"
output="false">
                <cfargument name="ENTRY_TYPE" type="numeric" required="true" />
                <cfset variables.instance.ENTRY_TYPE = 
trim(arguments.ENTRY_TYPE) />
        </cffunction>
        <cffunction name="getENTRY_TYPE" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.ENTRY_TYPE />
        </cffunction>

        <cffunction name="setHIGH_SCHOOL_ATTENDED" access="public"
returntype="void" output="false">
                <cfargument name="HIGH_SCHOOL_ATTENDED" type="string"
required="true" />
                <cfset variables.instance.HIGH_SCHOOL_ATTENDED =
arguments.HIGH_SCHOOL_ATTENDED />
        </cffunction>
        <cffunction name="getHIGH_SCHOOL_ATTENDED" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.HIGH_SCHOOL_ATTENDED />
        </cffunction>

        <cffunction name="setPREV_COLLEGE_ATTENDED" access="public"
returntype="void" output="false">
                <cfargument name="PREV_COLLEGE_ATTENDED" type="string"
required="true" />
                <cfset variables.instance.PREV_COLLEGE_ATTENDED =
arguments.PREV_COLLEGE_ATTENDED />
        </cffunction>
        <cffunction name="getPREV_COLLEGE_ATTENDED" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.PREV_COLLEGE_ATTENDED />
        </cffunction>

        <cffunction name="setCLASSIFICATION" access="public"
returntype="void" output="false">
                <cfargument name="CLASSIFICATION" type="string" required="true" 
/>
                <cfset variables.instance.CLASSIFICATION = 
arguments.CLASSIFICATION /
>
        </cffunction>
        <cffunction name="getCLASSIFICATION" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.CLASSIFICATION />
        </cffunction>

        <cffunction name="setGRADUATE_date" access="public" returntype="void"
output="false">
                <cfargument name="GRADUATE_date" type="string" required="true" 
/>
                <cfif isDate(arguments.GRADUATE_date)>
                        <cfset arguments.GRADUATE_date =
dateformat(arguments.GRADUATE_date,"MM/DD/YYYY") />
                </cfif>
                <cfset variables.instance.GRADUATE_date =
trim(arguments.GRADUATE_date) />
        </cffunction>
        <cffunction name="getGRADUATE_date" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.GRADUATE_date />
        </cffunction>

        <cffunction name="setGPA" access="public" returntype="void"
output="false">
                <cfargument name="GPA" type="numeric" required="true" />
                <cfset variables.instance.GPA = trim(arguments.GPA) />
        </cffunction>
        <cffunction name="getGPA" access="public" returntype="numeric"
output="false">
                <cfreturn variables.instance.GPA />
        </cffunction>

        <cffunction name="setCLASS_RANKING_SIZE" access="public"
returntype="void" output="false">
                <cfargument name="CLASS_RANKING_SIZE" type="string" 
required="true" /
>
                <cfset variables.instance.CLASS_RANKING_SIZE =
arguments.CLASS_RANKING_SIZE />
        </cffunction>
        <cffunction name="getCLASS_RANKING_SIZE" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.CLASS_RANKING_SIZE />
        </cffunction>

        <cffunction name="setMAJOR" access="public" returntype="void"
output="false">
                <cfargument name="MAJOR" type="string" required="true" />
                <cfset variables.instance.MAJOR = arguments.MAJOR />
        </cffunction>
        <cffunction name="getMAJOR" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.MAJOR />
        </cffunction>

        <cffunction name="setMINOR" access="public" returntype="void"
output="false">
                <cfargument name="MINOR" type="string" required="true" />
                <cfset variables.instance.MINOR = arguments.MINOR />
        </cffunction>
        <cffunction name="getMINOR" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.MINOR />
        </cffunction>

        <cffunction name="setCAREER_OBJECTIVE" access="public"
returntype="void" output="false">
                <cfargument name="CAREER_OBJECTIVE" type="string" 
required="true" />
                <cfset variables.instance.CAREER_OBJECTIVE =
arguments.CAREER_OBJECTIVE />
        </cffunction>
        <cffunction name="getCAREER_OBJECTIVE" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.CAREER_OBJECTIVE />
        </cffunction>

        <cffunction name="setPERSONAL_STATEMENT" access="public"
returntype="void" output="false">
                <cfargument name="PERSONAL_STATEMENT" type="string" 
required="true" /
>
                <cfset variables.instance.PERSONAL_STATEMENT =
arguments.PERSONAL_STATEMENT />
        </cffunction>
        <cffunction name="getPERSONAL_STATEMENT" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.PERSONAL_STATEMENT />
        </cffunction>

        <cffunction name="setLETTER1" access="public" returntype="void"
output="false">
                <cfargument name="LETTER1" type="string" required="true" />
                <cfset variables.instance.LETTER1 = arguments.LETTER1 />
        </cffunction>
        <cffunction name="getLETTER1" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.LETTER1 />
        </cffunction>

        <cffunction name="setLETTER2" access="public" returntype="void"
output="false">
                <cfargument name="LETTER2" type="string" required="true" />
                <cfset variables.instance.LETTER2 = arguments.LETTER2 />
        </cffunction>
        <cffunction name="getLETTER2" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.LETTER2 />
        </cffunction>

        <cffunction name="setHONORS_WORK" access="public" returntype="void"
output="false">
                <cfargument name="HONORS_WORK" type="string" required="true" />
                <cfif isDate(arguments.HONORS_WORK)>
                        <cfset arguments.HONORS_WORK = 
dateformat(arguments.HONORS_WORK,"MM/
DD/YYYY") />
                </cfif>
                <cfset variables.instance.HONORS_WORK = 
trim(arguments.HONORS_WORK) /
>
        </cffunction>
        <cffunction name="getHONORS_WORK" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.HONORS_WORK />
        </cffunction>

        <cffunction name="setDATE_ENTERED" access="public" returntype="void"
output="false">
                <cfargument name="DATE_ENTERED" type="string" required="true" />
                <cfif isDate(arguments.DATE_ENTERED)>
                        <cfset arguments.DATE_ENTERED =
dateformat(arguments.DATE_ENTERED,"MM/DD/YYYY") />
                </cfif>
                <cfset variables.instance.DATE_ENTERED =
trim(arguments.DATE_ENTERED) />
        </cffunction>
        <cffunction name="getDATE_ENTERED" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.DATE_ENTERED />
        </cffunction>

        <cffunction name="setDate_MODIFIED" access="public" returntype="void"
output="false">
                <cfargument name="date_MODIFIED" type="string" required="true" 
/>
                <cfif isDate(arguments.date_MODIFIED)>
                        <cfset arguments.date_MODIFIED =
dateformat(arguments.date_MODIFIED,"MM/DD/YYYY") />
                </cfif>
                <cfset variables.instance.date_MODIFIED =
trim(arguments.date_MODIFIED) />
        </cffunction>
        <cffunction name="getDate_MODIFIED" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.date_MODIFIED />
        </cffunction>

        <cffunction name="setENTERED_BY" access="public" returntype="void"
output="false">
                <cfargument name="ENTERED_BY" type="string" required="true" />
                <cfset variables.instance.ENTERED_BY = arguments.ENTERED_BY />
        </cffunction>
        <cffunction name="getENTERED_BY" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.ENTERED_BY />
        </cffunction>

        <cffunction name="setMENTOR_EMAIL1" access="public" returntype="void"
output="false">
                <cfargument name="MENTOR_EMAIL1" type="string" required="true" 
/>
                <cfset variables.instance.MENTOR_EMAIL1 = 
arguments.MENTOR_EMAIL1 />
        </cffunction>
        <cffunction name="getMENTOR_EMAIL1" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.MENTOR_EMAIL1 />
        </cffunction>

        <cffunction name="setMENTOR_EMAIL2" access="public" returntype="void"
output="false">
                <cfargument name="MENTOR_EMAIL2" type="string" required="true" 
/>
                <cfset variables.instance.MENTOR_EMAIL2 = 
arguments.MENTOR_EMAIL2 />
        </cffunction>
        <cffunction name="getMENTOR_EMAIL2" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.MENTOR_EMAIL2 />
        </cffunction>

        <cffunction name="setMENTOR_CODE1" access="public" returntype="void"
output="false">
                <cfargument name="MENTOR_CODE1" type="string" required="true" />
                <cfset variables.instance.MENTOR_CODE1 = arguments.MENTOR_CODE1 
/>
        </cffunction>
        <cffunction name="getMENTOR_CODE1" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.MENTOR_CODE1 />
        </cffunction>

        <cffunction name="setMENTOR_CODE2" access="public" returntype="void"
output="false">
                <cfargument name="MENTOR_CODE2" type="string" required="true" />
                <cfset variables.instance.MENTOR_CODE2 = arguments.MENTOR_CODE2 
/>
        </cffunction>
        <cffunction name="getMENTOR_CODE2" access="public"
returntype="string" output="false">
                <cfreturn variables.instance.MENTOR_CODE2 />
        </cffunction>

        <cffunction name="setVALIDREC" access="public" returntype="void"
output="false">
                <cfargument name="VALIDREC" type="string" required="true" />
                <cfset variables.instance.VALIDREC = arguments.VALIDREC />
        </cffunction>
        <cffunction name="getVALIDREC" access="public" returntype="string"
output="false">
                <cfreturn variables.instance.VALIDREC />
        </cffunction>

</cfcomponent>

 
***********************************************************************************************************************
DAO ***************************************************************
 
***********************************************************************************************************************

<cfcomponent>

        <cffunction name="Create" access="public" output="false">
                <cfargument name="Honors" required="yes" />
                <cfset var CreateQuery = "" />

                        <cfquery name="CreateQuery"
datasource="#getAppConfig().getConfig().dsn#">

                                INSERT INTO HONORSCOLLEGE
        
( LastName,FirstName,MiddleInit,Address1,City,State,Zip,Country,Phone,Email,
Sid,
        
ACT_English,ACT_Math,ACT_Science,ACT_Reading,ACT_composite,SAT_Verbal,SAT_Math,SAT_Total,Entry_Type,
        
HIGH_SCHOOL_ATTENDED,PREV_COLLEGE_ATTENDED,CLASSIFICATION,GRADUATE_DATE,GPA,CLASS_RANKING_SIZE,
        
MAJOR,MINOR,CAREER_OBJECTIVE,DATE_ENTERED,DATE_MODIFIED,ENTERED_BY,VALIDREC )
                                VALUES
                                (
                                        <cfqueryparam 
value="#arguments.Honors.getLastName()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getFirstName()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getMiddleInit()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getAddress1()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getCity()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getState()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getZip()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getCountry()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getPhone()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getEmail()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getSid() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getACT_English() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getACT_Math() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getACT_Science() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getACT_Reading() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam
value="#val( arguments.Honors.getACT_Composite() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getSAT_Verbal() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getSAT_Math() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getSAT_Total() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam value="#val( 
arguments.Honors.getEntry_Type() )#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam
value="#arguments.Honors.getHIGH_SCHOOL_ATTENDED()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam
value="#arguments.Honors.getPREV_COLLEGE_ATTENDED()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getCLASSIFICATION()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getGRADUATE_DATE()#"
cfsqltype="cf_sql_date">,
                                        <cfqueryparam 
value="#arguments.Honors.getGPA()#"
cfsqltype="cf_sql_numeric">,
                                        <cfqueryparam 
value="#arguments.Honors.getCLASS_RANKING_SIZE()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getMAJOR()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getMINOR()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getCAREER_OBJECTIVE()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getDATE_ENTERED()#"
cfsqltype="cf_sql_date">,
                                        <cfqueryparam 
value="#arguments.Honors.getDATE_MODIFIED()#"
cfsqltype="cf_sql_date">,
                                        <cfqueryparam 
value="#arguments.Honors.getENTERED_BY()#"
cfsqltype="cf_sql_varchar">,
                                        <cfqueryparam 
value="#arguments.Honors.getVALIDREC()#"
cfsqltype="cf_sql_numeric">


                                )

                        </cfquery>

        </cffunction>

        <cffunction name="Read" access="public" output="false">
                <cfargument name="Honors" required="yes" />
                <cfset var ReadQuery = "" />

                <cfquery name="ReadQuery"
datasource="#getAppConfig().getConfig().dsn#">

                        SELECT ID, LastName, sid,FirstName,
MiddleInit,Address1,City,State,Zip,Country,Phone,Email,
        
ACT_English,ACT_Math,ACT_Science,ACT_Reading,ACT_composite,SAT_Verbal,SAT_Math,SAT_Total,
                           Entry_Type
                        FROM HONORSCOLLEGE
                        WHERE ID = <cfqueryparam value="#val( 
arguments.Honors.getID() )#"
cfsqltype="cf_sql_numeric">

                </cfquery>

                <cfset arguments.Honors.setID( ReadQuery.ID ) />
                <cfset arguments.Honors.setLastName( ReadQuery.LastName ) />
                <cfset arguments.Honors.setFirstName( ReadQuery.FirstName ) />
                <cfset arguments.Honors.setMiddleInit( ReadQuery.MiddleInit ) />
                <cfset arguments.Honors.setAddress1( ReadQuery.Address1 ) />
                <cfset arguments.Honors.setCity( ReadQuery.City ) />
                <cfset arguments.Honors.setState( ReadQuery.State ) />
                <cfset arguments.Honors.setZip( ReadQuery.Zip ) />
                <cfset arguments.Honors.setCountry( ReadQuery.Country ) />
                <cfset arguments.Honors.setPhone( ReadQuery.Phone ) />
                <cfset arguments.Honors.setEmail( ReadQuery.Email ) />
                <cfset arguments.Honors.setSid( ReadQuery.Sid ) />
                <cfset arguments.Honors.setACT_English( ReadQuery.ACT_English ) 
/>
                <cfset arguments.Honors.setACT_Math( ReadQuery.ACT_Math ) />
                <cfset arguments.Honors.setACT_Reading( ReadQuery.ACT_Reading ) 
/>
                <cfset arguments.Honors.setACT_Science( ReadQuery.ACT_Science ) 
/>
                <cfset arguments.Honors.setACT_Composite( 
ReadQuery.ACT_Composite ) /
>
                <cfset arguments.Honors.setSAT_Verbal( ReadQuery.SAT_Verbal ) />
                <cfset arguments.Honors.setSAT_Math( ReadQuery.SAT_Math ) />
                <cfset arguments.Honors.setSAT_Total( ReadQuery.SAT_Total ) />
                <cfset arguments.Honors.setEntry_Type( ReadQuery.Entry_Type ) />


        </cffunction>

        <cffunction name="Update" access="public" output="false">
                <cfargument name="Honors" required="yes" />
                <cfset var UpdateQuery = "" />

                <cfquery name="UpdateQuery"
datasource="#getAppConfig().getConfig().dsn#">

                        UPDATE HONORSCOLLEGE
                                SET
                                        Sid      = <cfqueryparam 
value="#arguments.Honors.getSid()#"
cfsqltype="cf_sql_numeric">,
                                        LastName = <cfqueryparam 
value="#arguments.Honors.getLastName()#"
cfsqltype="cf_sql_varchar">,
                                        FirstName = <cfqueryparam
value="#arguments.Honors.getFirstName()#"
cfsqltype="cf_sql_varchar">,
                                        MiddleInit = <cfqueryparam
value="#arguments.Honors.getMiddleInit()#"
cfsqltype="cf_sql_varchar">,
                                        Address1 = <cfqueryparam 
value="#arguments.Honors.getAddress1()#"
cfsqltype="cf_sql_varchar">,
                                        City = <cfqueryparam 
value="#arguments.Honors.getCity()#"
cfsqltype="cf_sql_varchar">,
                                        State = <cfqueryparam 
value="#arguments.Honors.getState()#"
cfsqltype="cf_sql_varchar">,
                                        Zip = <cfqueryparam 
value="#arguments.Honors.getZip()#"
cfsqltype="cf_sql_varchar">,
                                        Phone = <cfqueryparam 
value="#arguments.Honors.getPhone()#"
cfsqltype="cf_sql_varchar">,
                                        Country = <cfqueryparam 
value="#arguments.Honors.getCountry()#"
cfsqltype="cf_sql_varchar">     ,
                                        Email = <cfqueryparam 
value="#arguments.Honors.getEmail()#"
cfsqltype="cf_sql_varchar">,
                                        ACT_English = <cfqueryparam
value="#arguments.Honors.getACT_English()#"
cfsqltype="cf_sql_numeric">,
                                        ACT_Math=<cfqueryparam 
value="#arguments.Honors.getACT_Math()#"
cfsqltype="cf_sql_numeric">,
                                        ACT_Science=<cfqueryparam
value="#arguments.Honors.getACT_Science()#"
cfsqltype="cf_sql_numeric">,
                                        ACT_Reading=<cfqueryparam
value="#arguments.Honors.getACT_Reading()#"
cfsqltype="cf_sql_numeric">,
                                        ACT_composite=<cfqueryparam
value="#arguments.Honors.getACT_composite()#"
cfsqltype="cf_sql_numeric">,
                                        SAT_Verbal=<cfqueryparam
value="#arguments.Honors.getSAT_Verbal()#"
cfsqltype="cf_sql_numeric">,
                                        SAT_Math=<cfqueryparam 
value="#arguments.Honors.getSAT_Math()#"
cfsqltype="cf_sql_numeric">,
                                        SAT_Total=<cfqueryparam 
value="#arguments.Honors.getSAT_Total()#"
cfsqltype="cf_sql_numeric">,
                                        Entry_TYpe=<cfqueryparam
value="#arguments.Honors.getEntry_Type()#"
cfsqltype="cf_sql_numeric">
                        WHERE ID = <cfqueryparam 
value="#arguments.Honors.getID()#"
cfsqltype="cf_sql_numeric">

                </cfquery>
        </cffunction>

        <cffunction name="Delete" access="public" output="false">
                <cfargument name="Honors" required="yes" />
                <cfset var DeleteQuery = "" />

                <cfquery name="DeleteQuery"
datasource="#getAppConfig().getConfig().dsn#">

                        UPDATE HONORSCOLLEGE
                                SET VALIDREC = 0
                WHERE ID = <cfqueryparam value="#arguments.Honors.getID()#"
cfsqltype="cf_sql_numeric">
                </cfquery>

        </cffunction>

        <cffunction name="Resurrect" access="public" output="false">
                <cfargument name="Honors" required="yes" />
                <cfset var ResurectQuery = "" />

                <cfquery name="ResurrectQuery"
datasource="#getAppConfig().getConfig().dsn#">

                        UPDATE HONORSCOLLEGE
                                SET VALIDREC = 1
                WHERE ID = <cfqueryparam value="#arguments.Honors.getID()#"
cfsqltype="cf_sql_numeric">
                </cfquery>

        </cffunction>

        <cffunction name="getAppConfig" access="public" output="false"
returntype="any">
                <cfreturn variables.instance.AppConfig />
        </cffunction>

        <cffunction name="setAppConfig" access="public" output="false"
returntype="void">
                <cfargument name="AppConfig" type="any" required="true" />
                <cfset variables.instance.AppConfig = arguments.AppConfig />
        </cffunction>




</cfcomponent>

 
***********************************************************************************************************************
GW **************************************************************
 
***********************************************************************************************************************

<cfcomponent>


<cffunction name="getHonorsQueryActive" access="public" output="false"
returntype="query">
   <cfset var HonorsQuery = "" />

   <cfquery name="HonorsQuery"
datasource="#getAppConfig().getConfig().dsn#">
         select * from honorscollege where VALIDREC = 1
   </cfquery>

   <cfreturn HonorsQuery />

</cffunction>

<cffunction name="getHonorsQueryinActive" access="public"
output="false" returntype="query">
   <cfset var HonorsQuery = "" />

    <cfquery name="HonorsQuery"
datasource="#getAppConfig().getConfig().dsn#">
       select * from honorscollege where VALIDREC = 0
    </cfquery>

    <cfreturn HonorsQuery />

</cffunction>




<cffunction name="getAppConfig" access="public" output="false"
returntype="any">
<cfreturn variables.instance.AppConfig />
</cffunction>

<cffunction name="setAppConfig" access="public" output="false"
returntype="void">
<cfargument name="AppConfig" type="any" required="true" />
<cfset variables.instance.AppConfig = arguments.AppConfig />
</cffunction>

</cfcomponent>


 
***********************************************************************************************************************
SERVICE
***************************************************************
 
***********************************************************************************************************************

<cfcomponent>


        <!---
        PROPERTIES
        --->
        <cfset variables.instance = StructNew() />


        <cffunction name="loadHonors" access="public" returntype="void"
output="false">
                <cfargument name="Honors" type="any" required="true"/>

                        <cfset getHonorsDAO().read( arguments.Honors ) />

   </cffunction>

        <cffunction name="removeHonors" access="public" returntype="void"
output="false">
                <cfargument name="Honors" type="any" required="true"/>

                        <cfset getHonorsDAO().delete( arguments.Honors ) />

   </cffunction>

        <cffunction name="ResurrectHonors" access="public" returntype="void"
output="false">
                <cfargument name="Honors" type="any" required="true"/>

                        <cfset getHonorsDAO().resurrect( arguments.Honors ) />

   </cffunction>

        <cffunction name="saveHonors" access="public" returntype="void"
output="false">
                <cfargument name="Honors" type="any" required="true"/>

                <cfif val( Honors.getID() ) GT 0 ><!--- Update --->
                        <cfset getHonorsDAO().update( arguments.Honors ) />
                <cfelse><!--- Insert --->
                        <cfset getHonorsDAO().create( arguments.Honors ) />
                </cfif>

   </cffunction>


        <cffunction name="getHonorsListActive" output="false" access="public"
returntype="query" hint="I return a list of contacts">
                <cfreturn getHonorsGW().getHonorsQueryActive() />
        </cffunction>

        <cffunction name="getHonorsListinActive" output="false"
access="public" returntype="query" hint="I return a list of contacts">
                <cfreturn getHonorsGW().getHonorsQueryinActive() />
        </cffunction>

        <cffunction name="getHonorsDAO" access="public" output="false"
returntype="any">
                <cfreturn variables.instance.HonorsDAO />
        </cffunction>

        <cffunction name="setHonorsDAO" access="public" output="false"
returntype="void">
                <cfargument name="HonorsDAO" type="any" required="true" />
                <cfset variables.instance.HonorsDAO = arguments.HonorsDAO />
        </cffunction>

        <cffunction name="getHonorsGW" access="public" output="false"
returntype="any">
                <cfreturn variables.instance.HonorsGW />
        </cffunction>

        <cffunction name="setHonorsGW" access="public" output="false"
returntype="void">
                <cfargument name="HonorsGW" type="any" required="true" />
                <cfset variables.instance.HonorsGW = arguments.HonorsGW />
        </cffunction>
</cfcomponent>

*************************************************************************************************
MODELGLUE.XML
*************************************************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<modelglue>


<controllers>
        <controller id="Controller" type="honors.controller.Controller">
      <message-listener message="OnRequestStart"
function="OnRequestStart" />
      <message-listener message="OnRequestEnd"
function="OnRequestEnd" />
          <message-listener message="getHonorsForm" />
          <message-listener message="needHonorsFormGeneric" />
          <message-listener message="needHonorsListActive"
function="getHonorsListActive" />
          <message-listener message="needHonorsListinActive"
function="getHonorsListinActive" />
          <message-listener message="needToRemoveHonors"
function="RemoveHonors" />
          <message-listener message="needToResurrectHonors"
function="ResurrectHonors" />
          <message-listener message="submitStudentFormData" />
          <message-listener message="submitTransferFormData" />
          <message-listener message="submitHighSchoolFormData" />
          <message-listener message="HonorsFormSubmitted" />
          <message-listener message="getXMLData" />
        </controller>
</controllers>

        <event-types>
        <!-- Sample Event Type:
                You can use before, after or both.
                <event-type name="templatedPage">
                        <before>
                                <results>
                                        <result 
do="SomethingThatShouldRunBefore"/>
                                </results>
                        </before>
                        <after>
                                <results>
                                        <result 
do="SomethingThatShouldRunAfter"/>
                                </results>
                        </after>
                </event-type>
        -->

           <event-type name="templatedPage">
                  <after>
                          <views>
                                  <include name="main" 
template="layout/Master.Layout.cfm" />
                          </views>
                  </after>
           </event-type>


           <event-type name="secure">
                  <before>
                                <broadcasts>
                                        <message name="needsAuthenticatedUser" 
/>
                                </broadcasts>
                  </before>
           </event-type>
        </event-types>

        <module location="config/secure/ModelGlue.xml" />


    <event-handlers>


        <event-handler name="default" type="templatedPage">
                        <broadcasts>
                <message name= "needHonorsFormGeneric" />
                        </broadcasts>
                        <views>
                                <include name="primary" 
template="frmMainHighSchool.cfm">
                                        <value name="xe_receiveformat" 
value="SubmitHighSchoolFormData" /
>
                                </include>
                        </views>
        </event-handler>

        <event-handler name="transfer" type="templatedPage">
                        <broadcasts>
                <message name= "needHonorsFormGeneric" />
                        </broadcasts>
                        <views>
                                <include name="primary" 
template="frmMainTransfer.cfm">
                                        <value name="xe_receiveformat" 
value="SubmitTransferFormData" />
                                </include>
                        </views>
        </event-handler>

        <event-handler name="student" type="templatedPage">
                        <broadcasts>
                <message name= "needHonorsFormGeneric" />
                        </broadcasts>
                        <views>
                                <include name="primary" 
template="frmMainStudent.cfm">
                                        <value name="xe_receiveformat" 
value="SubmitStudentFormData" />
                                </include>
                        </views>
        </event-handler>

        <event-handler name="highschool" type="templatedPage">
                        <broadcasts>
                <message name= "needHonorsFormGeneric" />
                        </broadcasts>
                        <views>
                                <include name="primary" 
template="frmMainHighSchool.cfm">
                                        <value name="xe_receiveformat" 
value="SubmitHighSchoolFormData" /
>
                                </include>
                        </views>
        </event-handler>

        <event-handler name="highschooledit" type="templatedPage">
                        <broadcasts>
                <message name= "getHonorsForm" />
                        </broadcasts>
                        <views>
                                <include name="primary" 
template="frmMainHighSchool.cfm">
                                        <value name="xe_receiveformat" 
value="SubmitHighSchoolFormData" /
>
                                </include>
                        </views>
        </event-handler>

        <event-handler name="transferedit" type="templatedPage">
                        <broadcasts>
                <message name= "getHonorsForm" />
                        </broadcasts>
                        <views>
                                <include name="primary" 
template="frmMainTransfer.cfm">
                                        <value name="xe_receiveformat" 
value="SubmitTransferFormData" />
                                </include>
                        </views>
        </event-handler>

        <event-handler name="studentedit" type="templatedPage">
                        <broadcasts>
                <message name= "getHonorsForm" />
                        </broadcasts>
                        <views>
                                <include name="primary" 
template="frmMainStudent.cfm">
                                        <value name="xe_receiveformat" 
value="SubmitStudentFormData" />
                                </include>
                        </views>
        </event-handler>

        <event-handler name="classxml" type="templatedPage">
                        <broadcasts>
                <message name= "getXMLData" />
                        </broadcasts>
                        <views>
                                <include name="primary" template="output.cfm">
                                </include>
                        </views>
        </event-handler>

        <event-handler name="Honors.List.Active" type="templatedPage">
                <broadcasts>
                        <message name="needHonorsListActive" />
                </broadcasts>
                <views>
                        <include name="mymenu" template="layout/dspMyMenu.cfm">
                                <value name="whichMenuIsCurrent" value="active" 
/>
                        </include>
                        <include name="primary" template="dspHonorsList.cfm">
                        </include>
                </views>
        </event-handler>

        <event-handler name="Honors.List.inActive" type="templatedPage">
                <broadcasts>
                        <message name="needHonorsListinActive" />
                </broadcasts>
                <views>
                        <include name="mymenu" template="layout/dspMyMenu.cfm">
                                <value name="whichMenuIsCurrent" 
value="inactive" />
                        </include>
                        <include name="primary" 
template="dspHonorsListinActive.cfm">
                        </include>
                </views>
        </event-handler>




<!--  Administrator Events -->
        <event-handler name="admin" type="secure,templatedPage">
                <!--
                <broadcasts>
                        <message name="needHonorsList" />
                </broadcasts>
                -->
                <views>
                        <include name="primary" template="default.cfm">
                        </include>
                </views>
        </event-handler>

        <event-handler name="adminList" type="secure,templatedPage">
                <views>
                        <include name="mymenu" template="layout/dspMyMenu.cfm">
                                <value name="whichMenuIsCurrent" value="admin" 
/>
                        </include>
                        <include name="primary" template="dspViewAdmins.cfm">
                        </include>
                </views>
        </event-handler>

        <event-handler name="honorshome" type="templatedPage">
                <views>
                        <include name="mymenu" template="layout/dspMyMenu.cfm">
                                <value name="whichMenuIsCurrent" value="home" />
                        </include>
                        <include name="primary" template="dspViewNews.cfm">
                        </include>
                </views>
        </event-handler>

        <event-handler name="honors.reportList" type="templatedPage">
                <views>
                        <include name="mymenu" template="layout/dspMyMenu.cfm">
                                <value name="whichMenuIsCurrent" 
value="reports" />
                        </include>
                        <include name="primary" template="dspListReports.cfm">
                        </include>
                </views>
        </event-handler>

        <event-handler name="Honors.Remove">
          <broadcasts>
              <message name="needToRemoveHonors" />
        </broadcasts>
        <results>
            <result do="Honors.List.Active" redirect="true" />
                </results>
        </event-handler>

        <event-handler name="Honors.Resurrect">
          <broadcasts>
              <message name="needToResurrectHonors" />
        </broadcasts>
        <results>
            <result do="Honors.List.Active" redirect="true" />
                </results>
        </event-handler>


<!--
        <event-handler name="handleStudentFormAction" type="templatedPage">
                        <broadcasts>
                <message name= "submitStudentFormData" />
                        </broadcasts>
        </event-handler>

        <event-handler name="handleTransferFormAction" type="templatedPage">
                        <broadcasts>
                <message name= "submitTransferFormData" />
                        </broadcasts>
        </event-handler>

        <event-handler name="handleHighSchoolFormAction"
type="templatedPage">
                        <broadcasts>
                <message name= "submitHighSchoolFormData" />
                        </broadcasts>
        </event-handler>
-->


        <event-handler name="SubmitHighSchoolFormData" type="templatedPage">
                        <broadcasts>
                <message name= "HonorsFormSubmitted" />
                        </broadcasts>
                        <results>
                                <result name="success" 
do="HighSchoolApplicationResponse" />
                                <result name="failure" do="highschool" />
                        </results>
        </event-handler>

        <event-handler name="SubmitTransferFormData" type="templatedPage">
                        <broadcasts>
                <message name= "HonorsFormSubmitted" />
                        </broadcasts>
                        <results>
                                <result name="success" 
do="TransferApplicationResponse" />
                                <result name="failure" do="transfer" />
                        </results>
        </event-handler>

        <event-handler name="SubmitStudentFormData" type="templatedPage">
                        <broadcasts>
                <message name= "HonorsFormSubmitted" />
                        </broadcasts>
                        <results>
                                <result name="success" 
do="ExistingApplicationResponse" />
                                <result name="failure" do="student" />
                        </results>
        </event-handler>


<!--  Responses to Forms submitted by Applicants -->

        <event-handler name="HighSchoolApplicationResponse"
type="templatedPage">
                <views>
                        <include name="primary" 
template="dspHonorsHighSchoolThankYou.cfm">
                        </include>
                </views>
        </event-handler>

        <event-handler name="ExistingApplicationResponse"
type="templatedPage">
                <views>
                        <include name="primary" 
template="dspHonorsStudentThankYou.cfm">
                        </include>
                </views>
        </event-handler>

        <event-handler name="TransferApplicationResponse"
type="templatedPage">
                <views>
                        <include name="primary" 
template="dspHonorsTransferThankYou.cfm">
                        </include>
                </views>
        </event-handler>


        <!--
        Sample Event Handler:
        <event-handler name="eventname">
                <broadcasts>
                        <message name="message" />
                </broadcasts>
                <results>
                        <result name="resultName" do="otherEvent" />
                </results>
                <views>
                        <include name="body" template="content.cfm" />
                </views>
        </event-handler>
        -->

        <!-- A homepage for your application. -->
        <event-handler name="page.index">
                <broadcasts />
                <results>
                        <result do="template.main" />
                </results>
                <views>
                        <include name="body" template="pages/index.cfm" />
                </views>
        </event-handler>

        <!-- An error event to show when an error occurs, much like
<cferror>. -->
        <event-handler name="page.error">
                <broadcasts />
                <results>
                        <result do="template.main" />
                </results>
                <views>
                        <include name="body" template="pages/exception.cfm" />
                </views>
        </event-handler>

        <!-- A "404" event to show when the requested event isn't defined. --
>
        <event-handler name="page.missing">
                <broadcasts />
                <results>
                        <result do="template.main" />
                </results>
                <views>
                        <include name="body" template="pages/missingEvent.cfm" 
/>
                </views>
        </event-handler>

        <!-- Private events:  can't be accessed through a URL -->
        <event-handler access="private" name="template.main">
                <views>
                        <include name="main" template="templates/main.cfm" />
                </views>
        </event-handler>
</event-handlers>


</modelglue>



-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to