Changes between Initial Version and Version 1 of FAQs/WhatHappenedToViewState

Show
Ignore:
Timestamp:
12/21/09 17:37:36 (16 years ago)
Author:
cfgrok (IP: 64.30.223.5)
Comment:

Added new FAQ page

Legend:

Unmodified
Added
Removed
Modified
  • FAQs/WhatHappenedToViewState

    v1 v1  
     1== What Happened to !ViewState? == 
     2 
     3In Model-Glue 3, the viewstate was deprecated. As of Model-Glue 3, the proper way to get values while you are in a view is through the Event object. 
     4  
     5You may get a single parameter by using: 
     6 
     7{{{ 
     8<cfset foo = event.getValue("foo") /> 
     9}}} 
     10 
     11You may get multiple parameters in a single statement by using: 
     12 
     13{{{ 
     14<cfset event.copyToScope(variables, "foo,bar,baz") /> 
     15}}}