PATH |
A WOTextField represents itself as a text input field. It
corresponds to the HTML element <INPUT TYPE="TEXT"...>
.
An instance of an NSFormatter subclass to be used to format object values for display as strings, and format user-entered strings back into object values. This attribute should specify a variable containing (or method returning) a preconfigured formatter object. For instance, a WOTextField might have the binding:
formatter = application.dateFormatter
With the following code:
// Application.wos NSFormatter *_dateFormatter; - (NSFormatter *)dateFormatter { if (!_dateFormatter) { _dateFormatter = [[NSDateFormatter alloc] initWithDateFormat:@"%m/%d/%Y" allowNaturalLanguage:NO]; } return _dateFormatter; }
If a user enters an "unformattable" value, WOTextField passes the invalid value through, allowing you to send back an error page that shows the invalid value.
nil
.
See the NSCalendarDate class specification for a description of
the date format syntax.nil
. See the NSNumberFormatter
class specification for a description of the number format syntax.true
(or 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.