From: <ndi...@us...> - 2002-10-03 05:42:26
|
Update of /cvsroot/modus/org/bacfug/modus/fields In directory usw-pr-cvs1:/tmp/cvs-serv19786/bacfug/modus/fields Modified Files: basefield.cfc Log Message: some kind of strangeness is happening when the formFieldFactory is stored in the server scope and reused for each instance, so for now I am going back to creating a new instance. Hopefully, I'll figure it out and be able to go back to having one instance nicely stored. Index: basefield.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/fields/basefield.cfc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** basefield.cfc 12 Sep 2002 19:18:26 -0000 1.6 --- basefield.cfc 3 Oct 2002 05:42:22 -0000 1.7 *************** *** 23,27 **** } //set the form field factory to this instance ! instance.formFieldFactory = server.modus.formFieldFactory; </cfscript> <cfreturn this> --- 23,28 ---- } //set the form field factory to this instance ! //instance.formFieldFactory = server.modus.formFieldFactory; ! instance.formFieldFactory = createObject("component","org.bacfug.modus.form.formFieldFactory").init(); </cfscript> <cfreturn this> |