At present the scaffolding documentation is rather out-of-date, I'm afraid, as it was written for Model-Glue 2, and scaffolding was revamped in version 3. Some of it is certainly still relevant, but other portions are not (most notably the "Customizing" pages). I am in the midst of putting this together, but it's not up on the site quite yet.
I also wanted to note that a little while ago we disabled anonymous editing of the MG wiki, as we were being inundated with spam, and were not having much luck with Trac's spam filter. Marc, please email me off-list to let me know what you would like your username to be, and I'll set up an account for you. Oh, and you're quite right regarding the generatedViewMapping setting, I went ahead and made that change (thanks very much for pointing it out). As to the specific questions you posed: > Do I have to add list,view,edit,commit,delete functions to the page > controller and have those in turn call the corresponding functions in the ORM > (page.cfc)? No. You don't actually need a controller at all if you're only using scaffolding, as the data retrieval/persistence is all handled by GDMs (Generic Database Messages): http://docs.model-glue.com/wiki/HowTos/HowToUseGenericDatabaseMessages You can take a look at the generated Scaffolds.xml file to see how it's putting the event-handlers together. > Do I have to add create list,view,edit,commit,delete functions to the > page.cfc entity? No, the CF 9 ORM adapter and service take care of this functionality. > What datastructures is the generated view expecting when displaying data? A > query resultset? An array of beans? Dan is exactly correct that the list views are passed a query, and the display and form views are passed an entity bean. HTH, -- Ezra Parker On Thu, Jan 5, 2012 at 7:52 AM, Dan Wilson <[email protected]> wrote: > Cool, Thanks. > > The docs site is publically editable. So make whatever changes you want. > We'll be notified and can do any clean up... > > Sometimes it's easier if folks give us a rough draft of what is needed, > versus us trying to think up what a new comer to the feature would > need.... Then again, sometimes we are just bogged down with other thing... > > If you are able to make some edits/improvements, you'll get a lifetime > supply of Model-Glue. > > DW > > > On Thu, Jan 5, 2012 at 10:46 AM, marc <[email protected]> wrote: >> >> Ok, fair enough. It's a free framework after all. >> >> I studied the docs on scaffolding >> (http://docs.model-glue.com/wiki/HowTos/HowToUseScaffolds/CustomizingGeneratedCfml#Scaffolds:CustomizingGeneratedCFML). >> There it says: >> >> "Scaffold tags cause certain files to be generated, such as lists, views, >> and edit forms. This generated code is placed into a directory governed by >> the ScaffoldPath property of the ModelGlueConfigurationBean in >> ColdSpring.xml." >> >> I think what you mean here is generatedViewMapping instead of >> ScaffoldPath. generatedViewMapping lets you determine where generated views >> should to be saved to. ScaffoldPath lets you define the location of >> Scaffolds.xml. >> >> Is it possible to add stuff like this to the MG docs the way the CF docs >> let you? >> >> Btw I find the MG documentation quite clear and to the point. Also I'm >> happy to contribute and fill in the parts I feel are missing as soon as I >> get my head around it. >> >> >> Marc >> >> -- >> 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 > > > > > -- > Plutarch - "The mind is not a vessel to be filled but a fire to be kindled." > > -- > 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 -- 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
