Nic – the latest version has a bug
in the record.project.xsl file that still generates the custom record with a
reference to that errormanager. Open that custom record and delete the
line of code or change it to
<cfset var Dictionary =
_getDictionary() />
A fix will be posted to SVN today at some
point.
Doug
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nik Molnar
Sent: Wednesday, March 15, 2006
3:15 PM
To: [email protected]
Subject: [Reactor For CF] Getting
Validation
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 ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
|