TTextBox displays a text box on the Web page for user input.
The text displayed in the TTextBox control is determined by the
{@link setText Text} property. You can create a SingleLine,
a MultiLine, or a Password text box by setting
the {@link setTextMode TextMode} property. If the TTextBox control
is a multiline text box, the number of rows it displays is determined
by the {@link setRows Rows} property, and the {@link setWrap Wrap} property
can be used to determine whether to wrap the text in the component.
Additional {@link setTextMode TextMode} types enable the use of new input types
added with html5, eg. Color, Date, Email.
To specify the display width of the text box, in characters, set
the {@link setColumns Columns} property. To prevent the text displayed
in the component from being modified, set the {@link setReadOnly ReadOnly}
property to true. If you want to limit the user input to a specified number
of characters, set the {@link setMaxLength MaxLength} property.
To use AutoComplete feature, set the {@link setAutoCompleteType AutoCompleteType} property.
If {@link setAutoPostBack AutoPostBack} is set true, updating the text box
and then changing the focus out of it will cause postback action.
And if {@link setCausesValidation CausesValidation} is true, validation will
also be processed, which can be further restricted within
a {@link setValidationGroup ValidationGroup}.
WARNING: Be careful if you want to display the text collected via TTextBox.
Malicious cross-site script may be injected in. You may use {@link getSafeText SafeText}
to prevent this problem.
NOTE: If you set {@link setWrap Wrap} to false or use {@link setAutoCompleteType AutoCompleteType},
the generated HTML output for the textbox will not be XHTML-compatible.
Currently, no alternatives are available.