This is a mapping problem. The MG framework is not reachable from your application.
In order for me to help, you need to provide your directory structure of where your app is, where Model ue is, and how you're accessing it in the URL. Dw On May 16, 2012 6:55 AM, "Muhammad Amir" <[email protected]> wrote: > guys please help me im really frustrated..... :( > On Tue, May 15, 2012 at 3:45 PM, Muhammad Amir <[email protected]>wrote: > >> Dear Ezra, >> >> as you said i started Quick Start now im facing new issue ... >> >> im setting up new application ... i already replaced all >> "modelglueapplicationtemplate" to translator >> >> please see the Attached screen shoot... >> >> Thanks >> >> >> On Mon, May 14, 2012 at 9:48 PM, Ezra Parker <[email protected]> wrote: >> >>> It appears to me that you are missing the "type" attribute on your >>> default event-handler in ModelGlue.xml -- it should look like this: >>> >>> <event-handler name="default" type="templatedPage"> >>> >>> Actually, if you are using the ModelGlue.xml you pasted a few messages >>> ago, then it looks like the type is missing on several of the event-handler >>> tags. >>> >>> Regarding your question as to how the Model-Glue view/layout rendering >>> system works, my recommendation would be to step through the Quickstart >>> before continuing with the online training, as it provides an overview of >>> the basics of how a Model-Glue application is put together, and the >>> training builds on this knowledge: >>> >>> http://docs.model-glue.com/wiki/QuickStart#Quickstart >>> >>> -- >>> Ezra Parker >>> >>> >>> On Mon, May 14, 2012 at 4:13 AM, Muhammad Amir <[email protected]>wrote: >>> >>>> >>>> Please have a look this screen also >>>> On Mon, May 14, 2012 at 3:06 PM, Muhammad Amir >>>> <[email protected]>wrote: >>>> >>>>> hi, >>>>> >>>>> >>>>> i did everything as u said but when i run >>>>> http://localhost/PlantOMatic/" i can see only primary.cfm file >>>>> screen shoot im attaching. >>>>> >>>>> Thanks >>>>> >>>>> >>>>> >>>>> On Mon, May 14, 2012 at 9:45 AM, Muhammad Amir >>>>> <[email protected]>wrote: >>>>> >>>>>> dear Ezra, >>>>>> >>>>>> you mean to say this piece of code i have to put in >>>>>> "views/layout/Layout.Navigation.cfm" >>>>>> >>>>>> <ul> >>>>>> <li><a href="/PlantOMatic" class="current">home</a></li> >>>>>> </ul> >>>>>> i did its there now about ModelGlue.xml file look like this >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>>> <modelglue> >>>>>> <controllers> >>>>>> <controller id="GlobalController" >>>>>> type="PlantOMatic.controller.GlobalController"> >>>>>> <message-listener message="onRequestStart" function="doSetUp" /> >>>>>> <message-listener message="require" function="require" /> >>>>>> </controller> >>>>>> </controllers> >>>>>> <event-types> >>>>>> <event-type name="templatedPage"> >>>>>> <after> >>>>>> <views> >>>>>> <include name="navigation" >>>>>> template="layout/Layout.Navigation.cfm"> >>>>>> <value name="xe_ShipmentList" value="Shipment.List" /> >>>>>> </include> >>>>>> <include name="message" template="layout/Layout.MessageBox.cfm" >>>>>> /> >>>>>> <include name="footer" template="layout/Layout.Footer.cfm" /> >>>>>> <include name="main" template="layout/Master.Layout.cfm" /> >>>>>> </views> >>>>>> </after> >>>>>> </event-type> >>>>>> </event-types> >>>>>> >>>>>> <event-handlers> >>>>>> <!-- A homepage for your application. --> >>>>>> <event-handler name="default"> >>>>>> <views> >>>>>> <include name="primary" template="primary.cfm" /> >>>>>> </views> >>>>>> <event-handler name="page.error" type="templatedPage"> >>>>>> <views> >>>>>> <include name="primary" template="layout/Master.Exception.cfm" >>>>>> /> >>>>>> </views> >>>>>> </event-handler> >>>>>> >>>>>> <event-handler name="page.missing" type="templatedPage"> >>>>>> <views> >>>>>> <include name="primary" template="layout/Master.MissingEvent.cfm" >>>>>> /> >>>>>> </views> >>>>>> </event-handler> >>>>>> </event-handler> >>>>>> <!-- An error event to show when an error occurs, much like >>>>>> <cferror>. --> >>>>>> <event-handler name="page.error"> >>>>>> <views> >>>>>> <include name="primary" template="layout/Master.Exception.cfm" /> >>>>>> </views> >>>>>> </event-handler> >>>>>> <!-- A "404" event to show when the requested event isn't defined. >>>>>> --> >>>>>> <event-handler name="page.missing"> >>>>>> <broadcasts /> >>>>>> <views> >>>>>> <include name="primary" template="layout/Master.MissingEvent.cfm" >>>>>> /> >>>>>> </views> >>>>>> </event-handler> >>>>>> </event-handlers> >>>>>> </modelglue> >>>>>> <!-- >>>>>> Sample Event Handler: >>>>>> <event-handler name="eventname"> >>>>>> <broadcasts> >>>>>> <message name="message" /> >>>>>> </broadcasts> >>>>>> <results> >>>>>> <result name="resultName" do="otherEvent" /> >>>>>> </results> >>>>>> <views> >>>>>> <include name="body" template="content.cfm" /> >>>>>> </views> >>>>>> </event-handler> >>>>>> --> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> About Primary.cfm what should i do there .... shell i <cfinclude> >>>>>> "Layout.Navigation.cfm" this file or what how it'll show there ??? >>>>>> >>>>>> Thanks >>>>>> >>>>>> >>>>>> On Sun, May 13, 2012 at 10:43 PM, Ezra Parker <[email protected]>wrote: >>>>>> >>>>>>> OK, I think I see what's going on -- am I correct that the code you >>>>>>> pasted in your last message is currently what you have in >>>>>>> views/primary.cfm? If so, then I think you misunderstood the >>>>>>> instructions >>>>>>> on how to split up the HTML template. Let me see if I can clarify this a >>>>>>> bit: >>>>>>> >>>>>>> The template.html file contains five sections that are delimited by >>>>>>> comments, and each of these sections needs to be placed in its own file. >>>>>>> Four of these files need to be created, but the fifth, primary.cfm, >>>>>>> already >>>>>>> exists, so you need to *replace* the contents of that file with the >>>>>>> corresponding snippet/section. This means that you will create the >>>>>>> following four new files: >>>>>>> >>>>>>> 1. views/layout/Layout.Navigation.cfm >>>>>>> 2. views/layout/Layout.MessageBox.cfm >>>>>>> 3. views/secondary.cfm >>>>>>> 4. views/layout/Layout.Footer.cfm >>>>>>> >>>>>>> For all 5 files (the four new ones and primary.cfm), the entire code >>>>>>> for each should be the portion *within* the corresponding start and end >>>>>>> comments. So for primary.cfm, this is the comment-delimited area: >>>>>>> >>>>>>> <!-- Replace File Contents File: views/primary.cfm --> >>>>>>> <h2>Primary Content Area</h2> >>>>>>> <ul> >>>>>>> <li>Primary Content Point</li> >>>>>>> <li>Another Primary Content Point</li> >>>>>>> <li>Yet Another Primary Content Point</li> >>>>>>> <li>See Above</li> >>>>>>> </ul> >>>>>>> <!-- End Replace File Contents File: views/primary.cfm --> >>>>>>> >>>>>>> Meaning that primary.cfm should look like this: >>>>>>> >>>>>>> <h2>Primary Content Area</h2> >>>>>>> <ul> >>>>>>> <li>Primary Content Point</li> >>>>>>> <li>Another Primary Content Point</li> >>>>>>> <li>Yet Another Primary Content Point</li> >>>>>>> <li>See Above</li> >>>>>>> </ul> >>>>>>> >>>>>>> For views/layout/Layout.Navigation.cfm, the delimited block is this: >>>>>>> >>>>>>> <!-- Create File: views/layout/Layout.Navigation.cfm --> >>>>>>> <ul> >>>>>>> <li><a href="/PlantOMatic" class="current">home</a></li> >>>>>>> </ul> >>>>>>> <!-- End Create File: views/layout/Layout.Navigation.cfm --> >>>>>>> >>>>>>> So that file should contain this code: >>>>>>> >>>>>>> <ul> >>>>>>> <li><a href="/PlantOMatic" class="current">home</a></li> >>>>>>> </ul> >>>>>>> >>>>>>> Once you have done this for the five view files and then make the >>>>>>> indicated changes to your ModelGlue.xml configuration file (adding the >>>>>>> templatedPage event-type, and the corresponding type attribute to each >>>>>>> event-handler), you should see the template layout render as expected >>>>>>> when >>>>>>> loading the site at http://localhost/PlantOMatic/ >>>>>>> >>>>>>> Please give this a shot and post back if you encounter further >>>>>>> difficulties. >>>>>>> >>>>>>> HTH, >>>>>>> >>>>>>> -- >>>>>>> Ezra Parker >>>>>>> >>>>>>> >>>>>>> On Sun, May 13, 2012 at 4:42 AM, Onlyamir007 >>>>>>> <[email protected]>wrote: >>>>>>> >>>>>>>> A Flexible One Column Template ΒΆ >>>>>>>> >>>>>>>> Now, when we run our application at http://localhost/PlantOMatic/we >>>>>>>> see our template in action: >>>>>>>> >>>>>>>> >>>>>>>> http://docs.model-glue.com/raw-attachment/wiki/Training/Section02/training02-2.png >>>>>>>> One Column Layout >>>>>>>> >>>>>>>> >>>>>>>> --------------------------------------------------------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>>> Primary.cfm >>>>>>>> >>>>>>>> -------------------------------------------------------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>>> <!---I am a blank slate. >>>>>>>> >>>>>>>> You should skin me with <a href="template.html">This Template</a> >>>>>>>> ---> >>>>>>>> >>>>>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// >>>>>>>> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >>>>>>>> >>>>>>>> <!-- ========================================================== --> >>>>>>>> <!-- Created by Devit Schizoper --> >>>>>>>> <!-- Created HomePages http://LoadFoo.starzonewebhost.com --> >>>>>>>> <!-- Created Day 01.12.2006 --> >>>>>>>> <!-- ========================================================== --> >>>>>>>> >>>>>>>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >>>>>>>> <head> >>>>>>>> <meta http-equiv="content-type" content="text/html;charset=utf-8" >>>>>>>> / >>>>>>>> > >>>>>>>> <meta name="author" content="LoadFoO" /> >>>>>>>> <meta name="description" content="Site description" /> >>>>>>>> <meta name="keywords" content="key, words" /> >>>>>>>> >>>>>>>> <title>PlantOMatic</title> >>>>>>>> <link rel="stylesheet" type="text/css" >>>>>>>> href="www/css/style.css" >>>>>>>> media="screen" /> >>>>>>>> <link rel="shortcut icon" href="favicon.ico" /> >>>>>>>> <script type="text/javascript" >>>>>>>> src="www/js/textsizer.js"></script> >>>>>>>> <script type="text/javascript" src="www/js/rel.js"></script> >>>>>>>> </head> >>>>>>>> >>>>>>>> <body> >>>>>>>> >>>>>>>> <div id="wrap"> >>>>>>>> <div id="top"> >>>>>>>> <h2><a href="/" title="Back to main >>>>>>>> page">Home</a></h2> >>>>>>>> <div id="menu"> >>>>>>>> <cfoutput>#navigationcontent#</cfoutput> >>>>>>>> <!-- Create File: >>>>>>>> views/layout/Layout.Navigation.cfm --> >>>>>>>> <ul> >>>>>>>> <li><a href="/PlantOMatic" >>>>>>>> class="current">home</a></li> >>>>>>>> </ul> >>>>>>>> <!-- End Create File: >>>>>>>> views/layout/Layout.Navigation.cfm --> >>>>>>>> </div> >>>>>>>> </div> >>>>>>>> <div id="content"> >>>>>>>> <div style="float: right;"> >>>>>>>> <!-- Create File: >>>>>>>> views/layout/Layout.MessageBox.cfm --> >>>>>>>> <div id="highlightnews"> >>>>>>>> <ul> >>>>>>>> <li >>>>>>>> class="SuccessMessage">You have successfully viewed a >>>>>>>> template</li> >>>>>>>> </ul> >>>>>>>> </div> >>>>>>>> <!-- End Create File: >>>>>>>> views/layout/Layout.MessageBox.cfm --> >>>>>>>> </div> >>>>>>>> <div id="left" > >>>>>>>> <!-- Replace File Contents File: >>>>>>>> views/primary.cfm --> >>>>>>>> <h1> My Area for content</h1> >>>>>>>> <h2>Primary Content Area</h2> >>>>>>>> <ul> >>>>>>>> <li>Primary Content Point</li> >>>>>>>> <li>Another Primary Content >>>>>>>> Point</li> >>>>>>>> <li>Yet Another Primary Content >>>>>>>> Point</li> >>>>>>>> <li>See Above</li> >>>>>>>> </ul> >>>>>>>> <!-- End Replace File Contents File: >>>>>>>> views/primary.cfm --> >>>>>>>> </div> >>>>>>>> <div id="right"> >>>>>>>> <!-- Create File: views/secondary.cfm --> >>>>>>>> <ul id="nav"> >>>>>>>> <li><a href="##">Subnavigational >>>>>>>> Element</a></li> >>>>>>>> <li><a href="##">The Next >>>>>>>> Subnavigational Element</a></li> >>>>>>>> <li><a href="##">Another >>>>>>>> Subnavigational Element</a></li> >>>>>>>> <li><a href="##">Even More >>>>>>>> Subnavigational Element</a></li> >>>>>>>> </ul> >>>>>>>> <!-- End Create File: views/secondary.cfm >>>>>>>> --> >>>>>>>> </div> >>>>>>>> <div id="clear"></div> >>>>>>>> </div> >>>>>>>> <!-- Create File: views/layout/Layout.Footer.cfm --> >>>>>>>> <div id="footer"> >>>>>>>> <p>Copyright 2006 LoadFoO [V1]. Designed by <a >>>>>>>> href="http:// >>>>>>>> loadfoo.org/" rel="external">LoadFoO</a>. Valid <a href="http:// >>>>>>>> jigsaw.w3.org/css-validator/check/referer" rel="external">CSS</a> >>>>>>>> & <a href="http://validator.w3.org/check?uri=referer" >>>>>>>> rel="external">XHTML</a></p> >>>>>>>> </div> >>>>>>>> <!-- End Create File: views/layout/Layout.Footer.cfm --> >>>>>>>> </div> >>>>>>>> >>>>>>>> </body> >>>>>>>> </html> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ >>>>>>>> >>>>>>>> >>>>>>>> On May 13, 3:36 pm, Dan Wilson <[email protected]> wrote: >>>>>>>> > What step were you on in section 2? >>>>>>>> > >>>>>>>> > DW >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > On Sun, May 13, 2012 at 7:11 AM, Learner <[email protected]> >>>>>>>> wrote: >>>>>>>> > > Dear Guru's, >>>>>>>> > >>>>>>>> > > i just started to learn MVC in coldfusion, i followed all steps >>>>>>>> for >>>>>>>> > > instllation now im on "Section 2: Show Me Some Skinning " i >>>>>>>> created >>>>>>>> > > all the templates in layout when i uncomment "<!-- Uncomment: >>>>>>>> > > #navigationcontent# -->" and i put >>>>>>>> <cfoutput>#navigationcontent#</ >>>>>>>> > > cfoutput> im getting error >>>>>>>> > >>>>>>>> > > Message Variable NAVIGATIONCONTENT is undefined. >>>>>>>> > > Detail >>>>>>>> > > Extended Info >>>>>>>> > > Tag Context >>>>>>>> C:\Inetpub\wwwroot\PlantOMatic\views\primary.cfm (34) >>>>>>>> > > C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfm (6) >>>>>>>> > > C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfc (56) >>>>>>>> > > >>>>>>>> C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc >>>>>>>> > > (661) >>>>>>>> > > >>>>>>>> C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc >>>>>>>> > > (246) >>>>>>>> > > >>>>>>>> C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\phase\Invocation.cfc >>>>>>>> > > (62) >>>>>>>> > > >>>>>>>> C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc >>>>>>>> > > (155) >>>>>>>> > > C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfc (215) >>>>>>>> > > C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfm (58) >>>>>>>> > > C:\Inetpub\wwwroot\PlantOMatic\index.cfm (50) >>>>>>>> > >>>>>>>> > > please guys help me to solve this issue i know im missing >>>>>>>> something >>>>>>>> > > but i don't know what .... >>>>>>>> > >>>>>>>> > > Thanks >>>>>>>> > >>>>>>>> > > -- >>>>>>>> > > 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 >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >> > -- > 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
