Model-Glue 3: Hello, World!
When requestformat=remote or html, remoteFunctions/htmlFunctions should be broadcast first before eventFunctions. However they are not. (See debugging) Same with the result, "template.main" is being called before "testresult". I asssume views has the same problem.
Here are the event type and event handler. Parent containers omitted but they exist.
<event-type name="general">
<before>
<broadcasts format="remote">
<message name="remoteFunctions"/>
</broadcasts>
<broadcasts format="html">
<message name="htmlFunctions"/>
</broadcasts>
<results format="remote">
<result do="testresult" />
</results>
<results format="html">
<result do="testresult" />
</results>
</before>
</event-type>
<event-handler name="page.test" type="general">
<broadcasts>
<message name="eventFunctions"/>
</broadcasts>
<results>
<result do="template.main" />
</results>
<views>
<include name="body" template="pages/test.cfm" />
</views>
</event-handler>