Thanks, I'll investigate it over the weekend. -----Original Message----- From: Sumit Verma <[email protected]> Date: Fri, 16 Oct 2009 12:08:45 To: Mach-II for CFML<[email protected]> Subject: [Mach-II] Re: Error in formTagBuilder.cfm
Hi Peter, I have attached current codebase of my sample app to the ticket. You will see the error when you go to admin --> users listing --> add user (admin:users.edit). You will need to create a datasource called MachIISampleApp and that should be it. ORM should create the sample users table automatically. Thanks, Sumit On Oct 15, 10:28 pm, "Peter J. Farrell" <[email protected]> wrote: > Thanks Sumit. Do you you could attach a generic CFC and cooresponding m2 form > code to the ticket so we will all be on the same page when working though the > issue? It ok for you to dummy up the CFC as long as it illustrates the > problem at hand. > > .Pjf > > -----Original Message----- > From: Sumit Verma <[email protected]> > Date: Thu, 15 Oct 2009 21:49:02 > To: <[email protected]> > Subject: [Mach-II] Re: Error in formTagBuilder.cfm > > Done. Ticket # 412. > > On Thu, Oct 15, 2009 at 5:41 PM, Peter J. Farrell <[email protected]> wrote: > > > Sumit, would you please file a ticket for us trac.mach-ii.com so this > > issue doesn't get forgotten and so we can provide some sort of resolution to > > this issue. Thanks for working with us. > > > .Peter > > -----Original Message----- > > From: Sumit Verma <[email protected]> > > Date: Thu, 15 Oct 2009 13:15:01 > > To: Mach-II for CFML<[email protected]> > > Subject: [Mach-II] Error in formTagBuilder.cfm > > > Hey Guys, > > > Found a bug in Mach-II 1.8/CF9. In formTagBuilder.cfm, line 81 invokes > > the getter for an item in bean. > > > <cfinvoke component="#arguments.bind#" method="get#key#" > > returnvariable="value" /> > > > And then it returns the "value" on line 104. > > > When using this with ORM in CF9, unless you have default values > > defined for the item, method returns null, in which case "value" > > becomes undefined. IMHO, CF should not wipe out the variables but let > > the value be "undefined", but CF doesn't really have a concept of > > "null" or "undefined". > > > So, the solution would be to check the existance of variable "value" > > before returning it. > > > ColdFusion 9: > > > <cfif IsNull(value)> > > <cfset value = "" /> > > </cfif> > > > Or, to keep it backword compatible: > > > <cfif Not IsDefined("value")> > > <cfset value = "" /> > > </cfif> > > > Thoughts? > > > Sumit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. 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/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---
