Changes between Version 22 and Version 23 of ReferenceMaterials/ModelGlueXmlReference
- Timestamp:
- 06/04/10 21:43:38 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ReferenceMaterials/ModelGlueXmlReference
v22 v23 236 236 == <result> == 237 237 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.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. 239 239 240 240 ==== Attributes ==== 241 241 242 242 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]] 246 246 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.'' 248 248 249 249 ==== Child Tags ==== … … 309 309 == <value> == 310 310 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 !ViewStateobject in the View API.311 A 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. 312 312 313 313 ==== Attributes ==== … … 315 315 1. Name (Required) - Defines the name of the argument. 316 316 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. 318 318 319 319 ==== Child Tags ====
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)