Changes between Version 3 and Version 4 of QuickStart/3:BuildingaForm

Show
Ignore:
Timestamp:
07/16/09 03:39:45 (17 years ago)
Author:
davidhenry@… (IP: 74.203.101.252)
Comment:

Fixed some code sample markup mixups. Did a minor for readability on viewstates.

Legend:

Unmodified
Added
Removed
Modified
  • QuickStart/3:BuildingaForm

    v3 v4  
    2222 
    2323Whenever you're writing a .CFM view, there are two variables always available: "viewstate" and "viewcollection." We'll get to viewcollection in a bit, but here's the rundown on viewstate: 
    24  
    25 It contains all the variables FORM and URL scopes as well as any other values added by the framework, like a query from a database or (big surprise) the translated version of the phrase that we're asking the user to enter. 
     24 Viewstate:: 
     25  A viewstate contains all the variables FORM and URL scopes as well as any other values added by the framework. 
     26The viewstate contains data like a query from a database or (big surprise) the translated version of the phrase that we're asking the user to enter. 
    2627 
    2728To get to one of the variables, you ask the viewstate variable to "get its value" with the getValue() function. 
     
    4748 
    4849{{{ 
     50#!xml 
    4951<event-handlers> 
    5052    <event-handler name="translationForm"> 
     
    5860 
    5961{{{ 
     62#!xml 
    6063<event-handlers> 
    6164    <event-handler name="translationForm"> 
     
    7275 
    7376{{{ 
     77#!xml 
    7478<event-handlers> 
    7579    <event-handler name="translationForm">