After
all the great help from everyone on this list I (think I) understand how
validation works.
IE:
<cfset
r =
createObject("component","reactor.reactorFactory").init("C:\CFusionMX7\wwwroot\temp\reactor.xml")>
<cfset user = r.createRecord("user")>
<cfset user.setfirstName(“ReallyLongNameThatShouldThroughADatabaseErrorBecauseOfItsLength”)>
<cfset errorThing = user.validate()>
<cfdump var=”#errorThing.getErrors()#”>
Should
give me a list of “all the errors” – if there is any.
However,
when I run this code I get this error: “Could not find the ColdFusion
Component reactor.core.errorManager.”. This is running against the
newest version of the SVN code base (215).
I downloaded
the zip file from the site (txt file says revision 208) and the same code gets
me this error: “The method 'createDictionary' could not be found in
component C:\...\reactorFactory.cfc.”
Am
I doing something wrong or is there just not a stable version of the validation
out right now?
Thank
You,
Nik
-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
|
- [Reactor For CF] Getting Validation Nik Molnar
-