Ticket #228 (closed defect: fixed)

Opened 19 years ago

Last modified 16 years ago

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

Changed 19 years ago by joe.rinehart

  • status changed from new to closed
  • resolution set to invalid

<event-handler> works better than <event-hander> :)

Sorry for the invalid DTD causing this.

Changed 19 years ago by joe.rinehart

  • resolution changed from invalid to fixed

(In [246]) Fixes #228 - there _was_ a small bug in queuing results added by an onRequestStart/End/etc. extension.

Changed 16 years ago by cfgrok

  • milestone User Reported Issues (with full information) deleted

Milestone User Reported Issues (with full information) deleted

Note: See TracTickets for help on using tickets.