TextEntry is a component for entering single line text. It has additional styling and functional features. Styling is controlled via the theme style sheet using predefined style classes. Additional attributes add functional features.
See the ICEfaces Showcase Live Demo of this component, complete with source code.
TagLib Documentation This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.
value is the input text.
label and labelPosition specify the label text and its position relative to the input field. Positions can be "left/right/top/bottom/inField/none". Default is "none".
required indicates whether the user is required to provide a non-empty submitted value for this component. Default = "false".
The secret boolean attribute can be set to "true" to display asterisks in place of the actual entered text, such as when capturing a password, etc. Default = 'false'.
The "secret" attribute is not supported on IE8 browsers.
The type attribute for the input element. Currently supports text, phone, url, email, number, date, time, datetime. Depending on device capability, a type-specific keyboard may be displayed.
Depending on whether input is required, an optionalIndicator or requiredIndicator can be supplied. The position of the indicator is specified by indicatorPosition. Positions can be "left/right/top/bottom/labelLeft/labelRight/none". Default is "labelRight" if labelPosition is "inField", "right" otherwise.
Listener method that will be notified when a new value has been set for this input component.
Client Behavior Events
Fired when the text input field loses focus (default event).
The client side text entry object is exposed through the global variable named by the widgetVar attribute, but currently there is no API useful to the user.
The following markup represents the basic HTML structure of the component and the CSS classes it uses.
<span><span><input class="ui-inputfield ui-textentry ui-widget ui-state-default ui-corner-all [user defined classes]" style="[user defined styles]" /><span class="ui-required-indicator ui-required-indicator-right">*</span></span></span>