Child pages
  • WOApplet
Skip to end of metadata
Go to start of metadata

Introduction

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.

Usage

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

Examples

Java methods

WOD-style

 

Inline bindings (WOOGNL)

 

Related documents

  • No labels