Member Avatar for gklandes

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?)

Member Avatar for gklandes

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.