0

I've started a new application in Coldfusion using the ModelGlue 3 framework. For some reason, the "defaultType" on my event-handlers is not working. Here is a snippet from the modelglue.xml file...

<modelglue>
	<controllers>...</controllers>
	<event-types>
		<event-type name="templateMain">
			<after>
				<results>
					<result do="view.template" />
				</results>
			</after>
		</event-type>
	</event-types>
	
	<event-handlers defaultType="templateMain">
		<event-handler name="dashboard">
			<broadcasts>
				<message name="authenticate" />
			</broadcasts>
			<results />
			<views>
				<include name="body" template="dspIndex.cfm" />
			</views>
		</event-handler>
	</event-handlers>
	
	<event-handlers>
	<event-handler name="view.template">
			<broadcasts />
			<results />
			<views>
				<include name="nav" template="dspNav.cfm" />
				<include name="template" template="dspTemplate.cfm" />
			</views>
		</event-handler>
	</event-handlers>
</modelglue>

The dashboard event runs without error but does not pickup the 'result' from the default event type ('templateMain').

I'm not even sure where to start troubleshooting. Anyone seen this? (...fixed it?)

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by gklandes
0

The problem wound up being in the version of ModelGlue. We installed the latest stable release (MG 3.1.299) and things seem to be working now.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.