Table of Contents Previous Section

Java Support: WOApplet and WOParam

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]... };

WOParam { name=aString; value=aString | action=aMethod; ... };

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.

You use the WOApplet element when you want to include applets or client-side components in your page. For more information on using WOApplet to specify a client-side component, see the Client-Side Applet Controls Reference.

WOApplet:

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 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 browser 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 browser 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.

WOParam:

name
Symbolic name associated with this element's value.
value
Value of this parameter.
action
Method that sets the parameter's value. Use this attribute instead of value if you want the parameter to be a WebObjects component.

Examples

Blinking text

Table of Contents Next Section