![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Скачать руководство пользователя страница 173](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-developing-web/coldfusion-4-5-developing-web_develop-manual_3286369173.webp)
Chapter 10: Building Dynamic Forms
147
<CFAPPLET APPLETSOURCE="myapplet"
NAME="applet1_var"
HEIGHT=400
WIDTH=200
VSPACE=125
HSPACE=125
ALIGN="left">
Overriding parameter values
You can also override the values you assigned to applet parameters in the
Administrator by providing new values for any parameter. Note that in order to
override a parameter, you must have already defined the parameter and a default value
for it in the ColdFusion Administrator Applets page.
<CFAPPLET APPLETSOURCE="myapplet"
NAME="applet1_var"
Param1="registered parameter"
Param2="registered parameter">
Handling form variables from an applet
The CFAPPLET tag requires you to specify a form variable name for the applet. This
variable, referenced like other ColdFusion form variables,
form.
variable_name
holds the value the applet method provides when it is executed in the CFFORM.
Not all Java applets return values. Some, like many graphical widgets, do not return a
specific value; they do their flipping, spinning, fading, exploding, and that’s that. For
this kind of applet, the method field in the Administrator remains empty. Other
applets, however, do have a method that returns a value. You can only use one method
for each applet you register. If an applet includes more than one method that you want
to access, you can register the applet with a unique name an additional time for each
method you want to use.
To reference a Java applet return value in your application page:
1.
Specify the name of the method in the Register New Applet page of the ColdFusion
Administrator.
2.
Specify the method name in the NAME attribute of the CFAPPLET tag when you
code your CFFORM.
When your page executes the applet, a form variable is created with the name you
specified. If you don’t specify a method, no form variable is created.
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...