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

Reply via email to