PATH Documentation > WebObjects

Table of Contents

WOApplet



Element Description

WOApplet is a dynamic element that generates HTML to specify a Java applet. The applet's parameters are passed by one or more WOParam elements.


Synopsis

WOApplet { code=javaClassName; width=aWidth; height=aHeight; [associationClass=className;] [codeBase=aPath;] [archive=jarFile1[, jarFile2];] [archiveNames=jarFile1[, jarFile2];] [object=serializedApplet;] [hspace= aSize;] [vspace=aSize;] [align=aString]... };

Bindings

code
Name of the Java class.
width
Width, in pixels, of the area to allocate for the applet.
height
Height, in pixels, of the area to allocate for the applet.
associationClass
Name of the Java subclass of next.wo.client.Association that aids in communication between client applet and the server.
codeBase
Directory that contains the applet code. If this attribute is omitted, the applet code is assumed to be in the same directory as the template HTML file.
archive
Comma-separated list of URLs for jar archive files containing classes and other resources that will be preloaded. (Note: Currently, most browsers do not support a comma-separated list, so only a single archive file may be used.) Use this attribute for archive files that you have generated outside of a WebObjects application or framework. The value for this attribute is appended to the archiveNames attribute value.
archiveNames
Comma-separated list of archive files containing classes and other resources that will be preloaded. (Note: Currently, most browsers do not support a comma-separated list, so only a single archive file may be used.) Use this attribute for archive files that are built as part of a WebObjects application or framework project.
object
File containing serialized representation of the applet.
hspace
Amount of whitespace (in pixels) to the left and right of the applet.
vspace
Amount of whitespace (in pixels) at the top and bottom of the applet.
align
Alignment of the applet. Possible values are top, bottom, left, right, and middle.

Table of Contents