Changes between Version 22 and Version 23 of ReferenceMaterials/ModelGlueXmlReference

Show
Ignore:
Timestamp:
06/04/10 21:43:38 (16 years ago)
Author:
davidhenry@… (IP: 74.203.101.252)
Comment:

Updated with references to Event object instead of viewstate

Legend:

Unmodified
Added
Removed
Modified
  • ReferenceMaterials/ModelGlueXmlReference

    v22 v23  
    236236== <result> == 
    237237 
    238 Defines an additional event-handler to execute as part of the current request.  Can use the NAME attribute to determine whether or not a certain result should be executed, and the REDIRECT attribute to abort the current request and redirect to a different event handler. 
     238Defines an additional event-handler to execute as part of the current request.  Can use the NAME attribute to determine whether or not a certain result should be executed, and the REDIRECT attribute to abort the current request and redirect to a different event handler. 
    239239 
    240240==== Attributes ==== 
    241241 
    242242  1. Do (Required) - The NAME attribute of an event handler to add to this request. 
    243   1. Name (Optional) - If not set ''or set to an empty string'', the event handler declared in the DO attribute will always be added to the request.  If not empty, the event handler declared will only execute if a function in a Controller CFC uses the addResult() method of the Event API to add a result with the value of the NAME attribute. 
    244   1. Redirect (Optional, default = "false") - If true, a redirect will immediately redirect the entire request to the event handler declared in the DO attribute.  All state value will be maintained if session is enabled. 
    245   1. Append (Optional, default = "") -  Used to define a list of value names (from the viewstate) that should be appended to the URL.  [[BR]][[BR]] Example:  If APPEND is set to articleId and DO is set to article, the redirect URL would be index.cfm?event=article&articleId=[value of articleId].[[BR]][[BR]]''Advanced, rarely used attributes:''[[BR]][[BR]] 
     243  1. Name (Optional) - If not set ''or set to an empty string'', the event handler declared in the DO attribute will always be added to the request.  If not empty, the event handler declared will only execute if a function in a Controller CFC uses the addResult() method of the Event API to add a result with the value of the NAME attribute. 
     244  1. Redirect (Optional, default = "false") - If true, a redirect will immediately redirect the entire request to the event handler declared in the DO attribute.  All state value will be maintained if session is enabled. 
     245  1. Append (Optional, default = "") -  Used to define a list of value names (from the Event object) that should be appended to the URL.  [[BR]][[BR]] Example:  If APPEND is set to articleId and DO is set to article, the redirect URL would be index.cfm?event=article&articleId=[value of articleId].[[BR]][[BR]]''Advanced, rarely used attributes:''[[BR]][[BR]] 
    246246  1. !PreserveState (Optional, default = "true") - If set to false and REDIRECT is set to true, then all state values will removed before redirecting to the event handler declared in the DO attribute.  If using this be sure that session management is enabled. 
    247   1. Reset (Optional, default = "false") - If set to true, any previously declared results of the same name will be erased.  ''This is only useful for redefining results added by scaffolds.'' 
     247  1. Reset (Optional, default = "false") - If set to true, any previously declared results of the same name will be erased.  ''This is only useful for redefining results added by scaffolds.'' 
    248248 
    249249==== Child Tags ==== 
     
    309309== <value> == 
    310310 
    311 A string value to set into the !ViewState before the .CFM template in the current include is rendered. Its value may be accessed through the !ViewState object in the View API. 
     311A string value to set into the Event object before the .CFM template in the current include is rendered. Its value may be accessed through the Event object in the View API. 
    312312 
    313313==== Attributes ==== 
     
    315315  1. Name (Required) - Defines the name of the argument. 
    316316  1. Value (Required) - Defines the value of this argument. 
    317   1. Overwrite (Optional, default = "false") - If set to true, this value will overwrite an existing same-named value in the !ViewState. 
     317  1. Overwrite (Optional, default = "false") - If set to true, this value will overwrite an existing same-named value in the Event object. 
    318318 
    319319==== Child Tags ====