• Settings
    • 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
  • Resources

Float Label

All input text components support floating labels by adding ( .ui-float-label ) to wrapper class.

OutputLabel Tag Documentation

OutputLabel is an extended version of standard Faces outputLabel component with enhanced features like required field indicator.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
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.
accesskey String false Access key to transfer focus to the input 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.
escape boolean false false
for String false
indicateRequired String false auto Defines how required field indicator is displayed. Valid values are "auto", "on", "off".
lang String false
onblur String false Fires when an element loses focus.
onclick String false Fires when a mouse click on the element.
ondblclick String false Fires when a mouse double-click on the element.
onfocus String false Fires when an element gets focus.
onkeydown String false Fires when a user is pressing a key.
onkeypress String false Fires when a user presses a key.
onkeyup String false Fires when a user releases a key.
onmousedown String false Fires when a mouse button is pressed down on an element.
onmousemove String false Fires when the mouse pointer is moving while it is over an element.
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.
onmouseup String false Fires when a mouse button is released over an element.
role String false
style String false Specifies an inline CSS style for an element.
styleClass String false Specifies one or more CSS class names for an element.
tabindex String false Specifies the tab order of an element.
title String false Specifies extra information about an element (displayed as a tooltip).
value Object false Value of the component.
Loading...
Tag DocumentationNew DocumentationNew Documentation

Usage


<div class="card" style="width: 100%">
    <h:form>
        <div class="grid ui-fluid mt-3 floatlabel-demo">
            <div class="col-12 md:col-6">
                <div class="field">
                    <span class="ui-float-label"> 
                        <p:inputText /> 
                        <p:outputLabel for="@previous" value="InputText" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label ui-input-icon-left"> 
                        <i class="pi pi-search" /> 
                        <p:inputText />
                        <p:outputLabel for="@previous" value="Left Icon" styleClass="ml-4" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label ui-input-icon-right"> 
                       <p:inputText /> 
                       <p:outputLabel for="@previous" value="Right Icon" /> 
                       <i class="pi pi-spin pi-spinner" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:inputMask mask="99/99/9999" /> 
                       <p:outputLabel for="@previous" value="InputMask" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:inputNumber /> 
                       <p:outputLabel for="@previous" value="InputNumber" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                          <p:chips /> 
                          <p:outputLabel for="@previous" value="Chips" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:colorPicker clearButton="true" closeButton="true"/> 
                       <p:outputLabel for="@previous" value="Color" />
                    </span>
                </div>
            </div>

            <div class="col-12 md:col-6">
                <div class="field">
                    <div class="ui-inputgroup">
                        <span class="ui-inputgroup-addon"> <i class="pi pi-user" />
                        </span> <span class="ui-float-label" style="width: 100%"> <p:inputText /> <p:outputLabel
                                for="@previous" value="InputGroup" />
                        </span>
                    </div>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:autoComplete /> 
                       <p:outputLabel for="@previous" value="AutoComplete" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:datePicker mask="true" pattern="dd.MM.yyyy" showIcon="true" showOnFocus="false" /> 
                       <p:outputLabel for="@previous" value="Datepicker" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:selectOneMenu id="cities" autoWidth="false">
                            <f:selectItem itemLabel="" itemValue="" />
                            <f:selectItem itemLabel="New York" itemValue="New York" />
                            <f:selectItem itemLabel="Rome" itemValue="Rome" />
                            <f:selectItem itemLabel="London" itemValue="London" />
                            <f:selectItem itemLabel="Istanbul" itemValue="Istanbul" />
                            <f:selectItem itemLabel="Paris" itemValue="Paris" />
                        </p:selectOneMenu> 
                        <p:outputLabel for="@previous" value="Dropdown" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:inputTextarea rows="3" cols="30" /> 
                       <p:outputLabel for="@previous" value="Textarea" />
                    </span>
                </div>
                <div class="field">
                    <span class="ui-float-label"> 
                       <p:password toggleMask="true" /> 
                       <p:outputLabel for="@previous" value="Password" />
                    </span>
                </div>
            </div>
        </div>
    </h:form>
</div>