PATH  WebObjects 4.5 Documentation > Applet Controls


Previous Section


TextFieldApplet



Synopsis

WOApplet { code = "next.wo.client.controls.TextFieldApplet.class";
stringValue=text; echoCharacter=character; action=method;...};

Description

A TextFieldApplet displays a line of editable text within a rectangular border. Pressing the Return key can trigger an action method in the server-side component. This control also can function as a password field where entered characters are masked by a specified replacement character.TextFieldApplet "wraps" the java.awt.TextField class.

stringValue
During page generation, stringvalue contains the initialized value. In each subsequent synchronization point, it contains any modification to the text the user makes and the text the action method assigns to it.

echoCharacter
The character to display when the user types a character in the field (often an asterisk or a space character). This character is specified in the ".wod" file as a string, not as a character enclosed by single quotation marks.

action
The method invoked when the user presses the Return key.