Changes between Initial Version and Version 1 of ReferenceMaterials/ColdSpringXmlReference/ModelGlueConfiguration

Show
Ignore:
Timestamp:
04/15/09 19:43:31 (17 years ago)
Author:
trac (IP: 127.0.0.1)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ReferenceMaterials/ColdSpringXmlReference/ModelGlueConfiguration

    v1 v1  
     1[[PageOutline]] 
     2 
     3= Model-Glue Configuration Setting Definitions = 
     4 
     5In your !ColdSpring.xml file, the modelGlueConfiguration bean defines environment parameters for the instance of Model-Glue framework that runs the application. 
     6 
     7Changing these parameters alters the behavior of the framework. 
     8 
     9This document explains each setting and its behavior. 
     10 
     11== Debug == 
     12 
     13Debug can be set to TRUE or FALSE. 
     14 
     15Setting to TRUE will cause the Model-Glue debugging trace to be displayed at the bottom of every page. 
     16 
     17== !DefaultCacheTimeout == 
     18 
     19The default cache timeout variable for controller-based caching. 
     20 
     21== !DefaultExceptionHandler == 
     22 
     23The name of an event handler tag to run in the event of an exception. 
     24 
     25When an exception is detected, a new value named "exception" is added to the viewstate containing the cfcatch structure from the exception. 
     26 
     27== !DefaultScaffolds == 
     28 
     29The list of scaffold types to generate when no TYPE attribute is specified for a given scaffold tag. 
     30 
     31== !DefaultTemplate == 
     32 
     33The name of the .CFM file that all requests use. Defaults to "index.cfm". 
     34 
     35== !EventValue == 
     36 
     37The name of the URL variable that contains the event handler tag to execute. 
     38 
     39Defaults to "event." 
     40 
     41If changed to "do," the url "index.cfm?do=somePage" would execute the "somePage" event handler. 
     42 
     43== !GeneratedViewMapping == 
     44 
     45The directory in which to put all view .CFM templates generated via scaffold tags. 
     46 
     47== Reload == 
     48 
     49The reload setting can be set to TRUE or FALSE. 
     50 
     51When TRUE, the application will re-read the !ModelGlue.xml, !ColdSpring.xml and Reactor.xml files on each request, reloading the framework and using any changes made to these files. 
     52 
     53When FALSE, the application will not reload the framework or detect changes to these files. 
     54 
     55It is imperative that any application deployed in a production environment have reload set to FALSE. 
     56 
     57== !ReloadKey == 
     58 
     59The name of the URL variable used to force reloading of the framework. When a URL variable by this name is added to the query string with a value matching RELOADPASSWORD's setting, the framework will reload regardless of its RELOAD setting value. 
     60 
     61This can be used to force the framework to reload in a production environment. 
     62 
     63Using the default values for RELOADKEY and RELOADPASSWORD, this would be done by appending ?init=true to the URL. 
     64 
     65== !ReloadPassword == 
     66 
     67The value of the URL variable named by the RELOADKEY setting. When a URL variable by this name is added to the query string with a value matching RELOADPASSWORD's setting, the framework will reload regardless of its RELOAD setting value. 
     68 
     69This can be used to force the framework to reload in a production environment. 
     70 
     71Using the default values for RELOADKEY and RELOADPASSWORD, this would be done by appending ?init=true to the URL. 
     72 
     73== Rescaffold == 
     74 
     75Rescaffold may be set to TRUE or FALSE. 
     76 
     77Generating scaffolds in a processor-intensive process. As more scaffolds are added, the framework may be slow to respond when the RELOAD setting is set to TRUE. By setting RESCAFFOLD to FALSE, changes to !ModelGlue.xml, !ColdSpring.xml, and Reactor.xml will be detected, but scaffolds will not be re-generated, and changes to scaffold tags will not be detected. 
     78 
     79== !StatePrecedence == 
     80 
     81Possible values are FORM and URL. 
     82 
     83Model-Glue combines all values from FORM and URL into a single structure called the viewstate. If STATEPRECEDENCE is set to FORM, FORM variables will overwrite like-named URL variables. If set to URL, the opposite will occur. 
     84 
     85== !ViewMappings == 
     86 
     87The list of directories in which .CFM templates to use as views will be found. The list is searched in order.