This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset validator.init() /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput>#validator.getValid()#</cfoutput> | |
<cfdump var="#validator.getMessages()#" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset validator.validate(testObj) /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent name="testObj" output="false"> | |
<cfproperty name="firstName" required="true" type="string" rules="noZeroLengthString" invalidMessage="Please provide your first name" /> | |
<cfproperty name="lastName" required="true" type="string" rules="noZeroLengthString" invalidMessage="Please provide your last name" /> | |
<cfproperty name="email" required="true" type="string" rules="noZeroLengthString,validEmail" invalidMessage="Please provide a valid email address" /> | |
<cfproperty name="dob" required="true" type="string" rules="validDate" invalidMessage="Please provide a valid date of birth" /> | |
<cfproperty name="gpa" required="true" type="numeric" rules="validNumber" invalidMessage="Please provide a valid number for GPA" /> | |
<cfset variables.firstName = '' /> | |
<cfset variables.lastName = '' /> | |
<cfset variables.email = '' /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset testObj = createObject('component','testObj') /> | |
<cfset testObj.setFirstName('sean') /> | |
<cfset testObj.setLastName('coyne') /> | |
<cfset testObj.setEmail('[email protected]') /> | |
<cfset testObj.setDOB('12/26/1981') /> | |
<cfset testObj.setGPA('3.89') /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset validator = createObject('component','com.n42designs.validation.validator').init() /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset viewState.setValue('myself',replace(viewState.getValue('myself'),'?','&','ALL')) /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<constructor-arg name="pathToConfigXml"><value>/mg/mgCal/config/reactor/Reactor.xml</value></constructor-arg> | |
<property name="mapping"><value>/mg/mgCal/model/data/reactor</value></property> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="viewMappings"><value>/mg/mgCal/views</value></property> | |
<property name="generatedViewMapping"><value>/mg/mgCal/views/generated</value></property> | |
<property name="configurationPath"><value>/mg/mgCal/config/ModelGlue.xml</value></property> | |
<property name="scaffoldPath"><value>/mg/mgCal/config/scaffolds/Scaffolds.xml</value></property> | |
<property name="defaultTemplate"><value>/go/calendar</value></property> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset ModelGlue_LOCAL_COLDSPRING_PATH = getDirectoryFromPath(getCurrentTemplatePath()) & "/config/ColdSpring.xml" /> |