Brett, It sounds like you're reading the QuickStart without actually following it. The Model-Glue QuickStart is written as a "follow-along" guide. In each step it asks you to perform changes to the application and then explains the effects of those changes. Dan and Ezra (who I believe are the primary authors of the online training materials) are experienced trainers and have found that developers learn better this way compared to simply reading complete examples.
In QuickStart/3 (which precedes the one you mentioned) you're asked to enter the following line (along with some other code) into a view file: <cfset event.copyToScope( variables, "xe_translate,phrase" ) /> <cfset submit = event.linkTo( xe_translate ) /> It then explains how "xe_translate" is an exit event and the role of exit events in a Model-Glue application. In this case, "xe_translate" is used to link a view event (translationForm) to an action event (translationFormAction). QuickStart/4 assumes you have some basic idea of exit events and uses "xe_translationForm" to link the action event back to the view event. Had you followed the tasks in QuickStart/3, QuickStart/4 would likely make a lot more sense to you. If you were indeed following along with the tasks in the QuickStart, let us know what was not clear about exit events in QuickStart/3 so we can improve the documentation. -- Dennis On 24 June 2011 10:10, Brettski <[email protected]> wrote: > Ok, I think I get it now :) > > I guess if it isn't useful on a 3 event app, doesn't it make the > "getting started" tutorial more complex then it needs to be..? Not > asking you specifically, just a comment to the group.. > > That was stumbling block for me, maybe I'm just a little dumber then > most but figure the simpler the getting started the better? > > b > > On Jun 24, 10:06 am, "Dan Wilson" <[email protected]> wrote: > > Also to pass in hard coded values to a View. > > > > It allows you to parameterize your views for abstractness and > configurability. > > > > It's also one of those things that is overkill for a 3 event app... And > useful for larger apps. > > > > DW > > DW > > Sent from a mobile. Please excuse brevity and typos. > > > > > > > > > > > > > > > > -----Original Message----- > > From: Brettski <[email protected]> > > > > Sender: [email protected] > > Date: Thu, 23 Jun 2011 17:03:39 > > To: model-glue<[email protected]> > > Reply-To: [email protected] > > Subject: [Model-Glue] Re: MG Docs, my brain is hurting > > > > so its mainly used to store other event names? Any other practical > > uses? > > > > On Jun 24, 9:28 am, Brett Herford-Fell <[email protected]> wrote: > > > mm... still confused, but will take another look.. > > > > > On Fri, Jun 24, 2011 at 8:54 AM, Dan Wilson <[email protected]> > wrote: > > > > I like to use that notation to refer to event variables. > > > > > > The reason why, is if you define your paths like that in the MG XML, > you > > > > can use the XML as a blueprint to follow the actions in your > application > > > > without opening any ColdFusion code. > > > > > > The other method would be to put the event value of a link or form. > That > > > > would work, but you'd lose the ability to read your XML like a > blueprint. > > > > > > DW > > > > > > DW > > > > > > Sent from a mobile. Please excuse brevity and typos. > > > > > > -----Original Message----- > > > > From: Brettski <[email protected]> > > > > Sender: [email protected] > > > > Date: Thu, 23 Jun 2011 15:07:14 > > > > To: model-glue<[email protected]> > > > > Reply-To: [email protected] > > > > Subject: [Model-Glue] MG Docs, my brain is hurting > > > > > > Just reading over the docs, making sure I've not missed anything and > I > > > > don't understand this.. > > > > > > > http://docs.model-glue.com/wiki/QuickStart/4%3AHandlingaForm#Quicksta... > > > > > > <event-handler name="translationFormAction"> > > > > <broadcasts> > > > > <message name="NeedTranslation" /> > > > > </broadcasts> > > > > <views> > > > > <include name="body" template="dspPhrase.cfm"> > > > > <value name="xe_translationForm" value="translationForm" / > > > > > > </include> > > > > </views> > > > > </event-handler> > > > > > > What is the value of this line? > > > > > > <value name="xe_translationForm" value="translationForm" /> > > > > > > It's used later to do this, but I don't really understand how / why I > > > > would do this in production? > > > > > > <cfset translationForm = event.linkTo( xe_translationForm, "phrase" ) > / > > > > > > Any help appreciated as always :) > > > -- 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
