Changes between Version 7 and Version 8 of HowTos/HowToUseDynamicViewMappings
- Timestamp:
- 10/07/11 13:41:08 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTos/HowToUseDynamicViewMappings
v7 v8 23 23 A common use case is to give all clients a custom URL. As a request comes in to the application, your code can check the url and provide the right set of viewMappings for layering of custom pages and skins. All while keeping your core software free of such knowledge and customizations. 24 24 25 A lso, you can use this feature to change views for different browsers/device/OS(mobile, html, ajax etc) in place of reaquestFormat feature.25 Another use case is to change views dinamically for different browsers/device/OS (mobile, html, ajax etc) in place or in addition to requestFormat setting, getting specific version of your site for different device types. 26 26 27 27 As MG3 begins the view rendering process, it will look in your mappings (comma delimited list) provided in event.setValue("viewMappingAdvice", "/adobe/coldfusion,/adobe/flex") in canonical order. If the template value (say index.cfm) exists in the path /adobe/coldfusion, MG3 will use that. If not, but index.cfm exists in /adobe/flex, MG3, will use that. If neither exist, MG3 will look in the viewMappings provided in your modelglue.modelGlueConfiguration bean in !ColdSpring.xml to find the correct view.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)