Porting MG:U(2) Applications to MG:G (3)
If you are on CF8, you can use per-application mappings (Ex. this["mappings"]["/ModelGlue"] = "/path/to/MG3") to test out your apps in MG:G
- Change index.cfm to point to ModelGlue.gesture.ModelGlue
- Change the modelGlueConfiguration bean class to ModelGlue.gesture.configuration.ModelGlueConfiguration
- Change the modelGlueConfiguration bean id to modelglue.modelGlueConfiguration
- Add the helper mappings, if you want <property name="helperMappings"><value>/ModelGlue/helpers</value></property>
- Add the missingEvent event <property name="missingEvent"><value>page.missing</value></property>
- Add the generationEnabled property <property name="generationEnabled"><value>false</value></property>
Change any ModelGlue.getBeanFactory() calls to ModelGlue.getBean().
You can rename controllers, I guess, although there is some stuff in place that makes that, and perhaps editing index.cfm, um, not a necessity.
If you are doing anything custom with the ViewRenderer, you'll probably have to change your code around a bit.
Think that's it, mostly. If I come up with other stuff I'll add it.

There are no comments for this entry.
[Add Comment] [Subscribe to Comments]