ColdFusion 9.0 Resources |
cfappletDescriptionThis tag references a registered custom Java applet. To register a Java applet, in the ColdFusion Administrator, select Extensions > Java Applets. Using this tag within a cfform tag is optional. If you use it within cfform, and the method attribute is defined in the Administrator, the return value is incorporated into the form. Syntax<cfapplet appletSource = "applet name" name = "form variable name" align = "alignment option" height = "height in pixels" hSpace = "space on each side in pixels" notSupported = "message to display for non-Java browser" param_1 = "applet parameter name" param_2 = "applet parameter name" param_n = "applet parameter name" vSpace = "space above and below in pixels" width = "width in pixels"> Note: You
can specify this tag’s attributes in an attributeCollection whose value
is a structure. Specify the structure name in the attributeCollection and
use the tag’s attribute names as structure keys.
See alsocfform, cfformgroup, cfformitem, cfgrid, cfinput, cfobject, cfselect, cfservlet, cfslider, cftextarea, cftree HistoryColdFusion MX:
Attributes
UsageYou can specify the applet method attribute only in the Administrator, Java Applets view. For other attributes, you can accept the default values in the Administrator view, or specify values in this tag and override the defaults. If Java applet components are stored in a JAR file, enter the information in the J2EE Archives > ColdFusion Administrator. For more information, see Embedding Java applets in the Developing ColdFusion Applications Example<p>cfapplet lets you reference custom Java applets that have been registered using the ColdFusion Administrator. <p>To register a Java applet, open the ColdFusion Administrator and click "Applets" link under "extensions" section. <p>This example applet copies text that you type into a form. Type some text, and then click "copy" to see the copied text. <cfform action = "index.cfm"> <cfapplet appletsource = "copytext" name = "copytext"> </cfform> |