Locale

Change the locale of the datepicker, schedule and client side validation messages.

Language
English
English
English
French
German
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Bangla
Bosnian
Czech
Greek
Estonian
Persian
Finnish
Danish
Hindi
Indonesian
Icelandic
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Serbian
Swedish
Thai
Turkish
Ukrainian
Uzbek
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeUIX
Aura Light Emerald Aura Light Emerald
Aura Dark Emerald Aura Dark Emerald
PrimeOne
Saga Blue Saga Blue
Vela Blue Vela Blue
Arya Blue Arya Blue
Bootstrap
Bootstrap Blue Light Bootstrap Blue Light
Bootstrap Purple Light Bootstrap Purple Light
Bootstrap Blue Dark Bootstrap Blue Dark
Bootstrap Purple Dark Bootstrap Purple Dark
Material Design
Material Indigo Light Material Indigo Light
Material Deep Purple Light Material Deep Purple Light
Material Indigo Dark Material Indigo Dark
Material Deep Purple Dark Material Deep Purple Dark
Material Design Compact
Material Compact Indigo Light Material Compact Indigo Light
Material Compact Deep Purple Light Material Compact Deep Purple Light
Material Compact Indigo Dark Material Compact Indigo Dark
Material Compact Deep Purple Dark Material Compact Deep Purple Dark
Legacy
Nova Light Nova Light
Nova Dark Nova Dark
Nova Colored Nova Colored
Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink

InputText

InputText extends standard InputText with skinning capabilities.

InputText Tag Documentation

InputText is an extension to standard inputText with skinning capabilities.

NameTypeRequiredDefaultDescription
immediate boolean false false When set true, process validations logic is executed at apply request values phase for this component.
value Object false Value of the component.
id String false generated Unique identifier of the component in a namingContainer.
counterTemplate String false {0} Template text to display in counter.
countBytesAsChars boolean false false Specifies whether to count bytes (UTF-8/16) instead of characters.
inputmode String false Specifies the type of data expected in the input, aiding virtual keyboards.
tabindex String false Specifies the tab order of an element.
lang String false Specifies the language of the element's content.
readonly boolean false false Specifies that an input field is read-only.
disabled boolean false false Specifies that an element should be disabled.
styleClass String false Specifies one or more CSS class names for an element.
title String false Specifies extra information about an element (displayed as a tooltip).
placeholder String false Specifies a short hint describing the expected value of the input.
style String false Specifies an inline CSS style for an element.
onwheel String false Script to execute when the mouse wheel is used.
onreset String false Script to execute when the form is reset.
oninput String false Script to execute when the element receives user input.
onscroll String false Script to execute when the element is scrolled.
oninvalid String false Script to execute when the element's value is invalid.
oncontextmenu String false Script to execute when the context menu is triggered.
onselect String false Script to execute when text is selected.
onpaste String false Script to execute when content is pasted into the element.
oncut String false Script to execute when content is cut from the element.
oncopy String false Script to execute when content is copied from the element.
onsearch String false Script to execute when a search is performed.
ondrag String false Script to execute when an element is dragged.
ondragleave String false Script to execute when a dragged element leaves a valid drop target.
ondragover String false Script to execute when a dragged element is over a valid drop target.
ondrop String false Script to execute when a dragged element is dropped.
ondragenter String false Script to execute when a dragged element enters a valid drop target.
ondragstart String false Script to execute at the start of a drag operation.
ondragend String false Script to execute at the end of a drag operation.
size int false Integer.MIN_VALUE Number of characters used to determine the width of the input element.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
required boolean false false Marks component as required.
type String false text Input field type.
localValueSet boolean false false Indicates whether the local value of the component has been set.
valid boolean false true Indicates whether the input's value is valid.
counter String false ID of the label component to display remaining and entered characters.
ariaDescribedBy String false Identifies the element(s) that describe the object, enhancing accessibility.
onchange String false Fires when the value of an element has been changed.
onmouseout String false Fires when the mouse pointer moves out of an element.
onmouseover String false Fires when the mouse pointer moves onto an element.
onmousemove String false Fires when the mouse pointer is moving while it is over an element.
onkeyup String false Fires when a user releases a key.
onkeypress String false Fires when a user presses a key.
onkeydown String false Fires when a user is pressing a key.
onblur String false Fires when an element loses focus.
onfocus String false Fires when an element gets focus.
ondblclick String false Fires when a mouse double-click on the element.
onclick String false Fires when a mouse click on the element.
onmouseup String false Fires when a mouse button is released over an element.
onmousedown String false Fires when a mouse button is pressed down on an element.
converter Converter false EL expression resolves to a converter instance or literal converter ID defining a component converter.
dir String false ltr Direction indication for text that does not inherit directionality.
role String false Defines the role of the element for accessibility purposes.
maxlength int false Integer.MIN_VALUE Defines the maximum number of characters allowed in the input.
validatorMessage String false Custom message to display when validation fails.
requiredMessage String false Custom message to display when the required validation fails.
converterMessage String false Custom message to display when conversion fails.
autocomplete String false Controls browser autocomplete behavior. Possible values are 'on', 'off', and 'new-password'.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
validator Validator false A method expression referring to a method validating the input.
valueChangeListener ValueChangeListener false A method binding expression referring to a method for handling a valuchangeevent.
alt String false Alternate textual description of the input field.
label String false A localized user presentable name.
accesskey String false Access key to transfer focus to the input element.
submittedValue Object false
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc
Basic
Floating Label
Left Icon
Right Icon
Help Text
Enter your username to reset your password.
Invalid
Username is not available.
Disabled

Usage


<div class="card">
    <h5>Basic</h5>
    <p:inputText/>

    <h5>Floating Label</h5>
    <span class="ui-float-label">
       <p:inputText id="float-input" value="#{inputTextView.text}"/>
       <p:outputLabel for="@previous" value="Username"/>
   </span>

    <h5>Left Icon</h5>
    <span class="ui-input-icon-left">
        <i class="pi pi-search" />
        <p:inputText placeholder="Search" />
    </span>

    <h5>Right Icon</h5>
    <span class="ui-input-icon-right">
        <i class="pi pi-spin pi-spinner" />
        <p:inputText />
    </span>

    <h5>Help Text</h5>
    <div class="field">
        <p:outputLabel for="username1" styleClass="block">Username</p:outputLabel>
        <p:inputText id="username1" styleClass="block"/>
        <small class="block">Enter your username to reset your password.</small>
    </div>

    <h5>Invalid</h5>
    <div class="field">
        <p:outputLabel for="username2" styleClass="block">Username</p:outputLabel>
        <p:inputText id="username2" styleClass="block ui-state-error"/>
        <small class="block ui-state-error">Username is not available.</small>
    </div>

    <h5>Disabled</h5>
    <p:inputText disabled="true" />
</div>