Table of Contents Previous Section

WOTextField

Synopsis

WOTextField { value=aValue; [dateformat=dateFormatString;] [numberformat=numberFormatString;] [name=fieldName;] [disabled=YES|NO;] ... };

Description

A WOTextField represents itself as a text input field. It corresponds to the HTML element <INPUT TYPE="TEXT"...>.

value
During page generation, value sets the default value displayed in the single-line text field. During request handling, it holds the value the user entered into the field, or the default value if the user left the field untouched.
dateformat
A format string that specifies how value should be formatted as a date. If a date format is used, value must be assigned an NSCalendarDate object. If value can't be interpreted according to the format you specify, value is set to nil. See the NSCalendarDate class specification for a description of the date format syntax.
numberformat
A format string that specifies how value should be formatted as a number. If a number format is used, value must be assigned an NSNumber object. If the element's value can't be interpreted according to the format you specify, value is set to nil. See the NSNumberFormatter class specification for a description of the number format syntax.
name
Name that uniquely identifies this element within the form. You may specify a name or let WebObjects automatically assign one at runtime.
disabled
If disabled evaluates to YES, the element appears in the page but is not active. That is, value does not contain the user's input when the page is submitted.

Examples

Forms and input elements

Table of Contents Next Section