MG3 Feature Sneak: Event Generation Video
Yesterday on YouTube, I posted a video of a new developer workflow coming in Model-Glue 3 called "Event Generation."
When in developer mode, hitting a nonexistent event-handler can be configured to generate a conventions-based Controller, listener function, controller, and view.
Basically, typing "index.cfm?event=order.list" gives you the following:
- An OrderController will be generated if it doesn't exist
- A listener function named "list" will be created in OrderController
- A message-listener subscribing OrderController.list() to "order.list" will be generated, along with a controller tag if one does not exist.
- A view in /order/list.cfm will be created.
- An event-handler tag wiring all of this together is created in the XML file of your choice, defaulting to your main ModelGlue.xml
Here's a video of it in action:
One of my favorite features coming in MG3 is purely for developer ease of use: hit an event that doesn't exist while in development mode, and it'll generate intelligently named controllers, listener functions, and views, wiring them all together with convention-based XML.
Here's a video of Event Generations (and a bit of SES features) in action:


The new "Formats" feature needed more explanation.. It will be really great if you can write an article focusing this special feature on your blog.. We are ANXIOUSLY WAITING to see that with a small AJAX integration example if possible.
I know it is in Alpha and I faced few issues when I played with it
1)built-in SES URL feature not working for me.
2) event.forward not seems working
3) When we add a new coldfusion UDF file inside '/helpers' folder App needed an init=true to access the new udf functions in 'helper scope' even though reload mode is turned on.
Thanks a lot Joe for your hard work!!
Shimju David