Bob, Found my error. For some reason a commented out the <cfset createmappings()> line. Fixed that and it runs as advertised without modification. I do have one question and this may be way premature. Why are you creating mappings for the views and beans? Is this just specific to this example, specific to what the scaffolding will ulitmately be, or is this a "best practice"? I've always been a little confused on the issue of relative vs absolute directories. My assumption if this goes to fruition, there would be settings like where you have your cfUniform located, things like that. And these settings would be configurable in Coldspring.
Like I said, you have probably thought about these things. Thanks again. Byron On Jan 23, 4:25 pm, byron <[email protected]> wrote: > I'll check the application.cfc. Since I was running from a different > directory path, that may have been the culprit. > > Byron > > On Jan 23, 11:20 am, Bob Silverberg <[email protected]> wrote: > > > Hmm, I tested it running the sample app directly from > > /ModelGlue3/modelgluesamples/NewScaffolds/ and it worked. In the > > Application.cfc file I'm actually creating an application-level > > mapping for /views, so I would have thought that would work, and you > > shouldn't need to specify /NewScaffolds at the front of the paths. > > Anyway, I'm glad you were able to get it running only having to change > > some paths. > > > Help with testing is always appreciated. I'm not sure who will > > coordinate that as we come closer to a final version, but thanks for > > offering! > > > Cheers, > > Bob > > > On Fri, Jan 22, 2010 at 10:31 PM, byron <[email protected]> wrote: > > > Bob, > > > > First, thanks for taking this on. I know it must be a lot of work. > > > I'm personally real excited with the cfUniform intergration. I've > > > gotten the scaffolding to run successfully, but I had to make a few > > > edits. I have the files under a directory called "NewScaffolds". The > > > only problems I ran into seem to deal with paths. For example: > > > > In coldspring.xml.cfm: I had to add "/NewScaffolds" to the path names > > > in "viewMappings" and "generatedViewMapping" > > > In the generated views: I had to change the <cfimport> tag to > > > "<cfimport taglib="/NewScaffolds/views/customtags/forms/cfUniForm/" > > > prefix="uform" />". I had to add "/NewScaffolds" to the path. > > > > I'm not sure if this is a Model-Glue issue or if I need to change a > > > certain setting to deal with absolute vs relative paths. I have > > > notices some inconsistencies regarding paths for certain settings in > > > the coldspring.xml file. > > > > Again, thanks. I'd be happy to help with testing. > > > > byron > > > > On Jan 22, 11:25 am, Bob Silverberg <[email protected]> wrote: > > >> OK, a sample app is now available in the branch. It's in > > >> modelgluesamples/NewScaffolds/. It uses CF9 ORM, so you'll need to be > > >> running CF9. ;-) > > > >> You'll need to set up a dsn called NewScaffolds (or edit the dsn name > > >> in the Application.cfc) and then you should be good to go. If you > > >> haven't played around with CF9 ORM DDL generation yet, you may be > > >> surprised to find that you may have to run the app a few times with > > >> ?reload=true to get the db to create successfully, but it should work > > >> eventually. > > > >> Right now it's set up to drop and recreate the tables on each request, > > >> so it works fine for viewing the pages but the CRUD stuff won't seem > > >> to work. You can change that by changing line 9 in Application.cfc > > >> from: > > > >> <cfset this.ormsettings = > > >> {dbcreate="dropcreate",logSQL=true,sqlscript="loadScript.sql"} /> > > > >> to > > > >> <cfset this.ormsettings = > > >> {dbcreate="update",logSQL=true,sqlscript="loadScript.sql"} /> > > > >> It's set up right now to generate the edit form using cfUniform. To > > >> change it generate the old style, but still using the new custom tag > > >> method you'll have to change line 60 in Coldspring.xml.xfm from: > > > >> <entry key="class"><value>beans.Edit_cfU</value></entry> > > > >> to: > > > >> <entry key="class"><value>beans.Edit_New</value></entry> > > > >> and then you'll have to rename the custom tags (which are in > > >> /views/generated/) from scaffold_property_mg.cfm to > > >> scaffold_property.cfm, etc. > > > >> Let me know if you have any issues getting it running. I'm keen to > > >> hear what people think of this approach. > > > >> Cheers, > > >> Bob > > > >> > On Fri, Jan 22, 2010 at 9:37 AM, Dan Wilson <[email protected]> wrote: > > >> >> Do you have a sample application I can install to see this in action? > > > >> >> DW > > > >> -- > > >> Bob Silverbergwww.silverwareconsulting.com > > > >> Hands-on ColdFusion ORM Training @ cf.Objective() > > >> 2010www.ColdFusionOrmTraining.com > > > > -- > > > Model-Glue Sites: > > > Home Page:http://www.model-glue.com > > > Documentation:http://docs.model-glue.com > > > Bug Tracker:http://bugs.model-glue.com > > > Blog:http://www.model-glue.com/blog > > > > You received this message because you are subscribed to the Google > > > Groups "model-glue" group. > > > 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/model-glue?hl=en > > > -- > > Bob Silverbergwww.silverwareconsulting.com > > > Hands-on ColdFusion ORM Training @ cf.Objective() > > 2010www.ColdFusionOrmTraining.com-Hide quoted text - > > > - Show quoted text - -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. 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/model-glue?hl=en
