Changes between Version 3 and Version 4 of QuickStart/3:BuildingaForm
- Timestamp:
- 07/16/09 03:39:45 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QuickStart/3:BuildingaForm
v3 v4 22 22 23 23 Whenever 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. 26 The 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. 26 27 27 28 To get to one of the variables, you ask the viewstate variable to "get its value" with the getValue() function. … … 47 48 48 49 {{{ 50 #!xml 49 51 <event-handlers> 50 52 <event-handler name="translationForm"> … … 58 60 59 61 {{{ 62 #!xml 60 63 <event-handlers> 61 64 <event-handler name="translationForm"> … … 72 75 73 76 {{{ 77 #!xml 74 78 <event-handlers> 75 79 <event-handler name="translationForm">
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)