Ticket #228 (closed defect: fixed)
ModelGlue.onRequestStart doesn't add views to the view queue
| Reported by: | ArmchairDeity | Owned by: | Joe Rinehart |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Version: | 2.0.304 | Severity: | major |
| Keywords: | xml modelglue.xml onrequeststart event handler view views include | Cc: | jared@… |
Description
mg.ors doesn't add views to the view queue either via the views tag or by the results tag calling other events that add views:
In the example below, the view.nav event adds both topnav and nav to the view queue, but the example with the views itself adds both directly. Either one would be great (both would be awesome) but neither works at this point. I have to put the view fragments in every single event handler in order to get the page to work correctly.
Example 1:
<event-hander name="ModelGlue.onRequestStart"> <results> <result do="view.footer" /> <result do="view.rightbody" /> <result do="view.nav" /> </results> </event-hander>
Example 2:
<event-hander name="ModelGlue.onRequestStart"> <views> <include name="footer" template="dspFooter.cfm" /> <include name="rightbody" template="dspRightBody.cfm" /> <include name="topnav" template="dspTopNav.cfm" /> <include name="nav" template="dspNav.cfm" /> </views> </event-hander>
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)