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

Inplace

Inplace provides easy inplace editing and inline content display. For inplace editing, "save" and "cancel" ajax behavior events are provided for customizing the use-case.

Inplace Tag Documentation

Inplace provides an easy way to edit content inplace with a custom input.

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.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
cancelLabel String false Cancel Label of the cancel button in editor mode.
disabled boolean false false Disables the component.
editor boolean false false Displays save and cancel buttons when enabled.
effect String false fade Effect to use when toggling, valid values are "fade", "slide" and "none".
effectSpeed String false normal Speed of the effect, valid values are "slow", "normal" and "fast".
emptyLabel String false Label to display when value is empty.
event String false click Client side event to trigger display of inline content.
label String false Label to display.
mode String false output Mode of the component, valid values are "output" and "input".
saveLabel String false Save Label of the save button in editor mode.
style String false Inline style of the component.
styleClass String false Style class of the component.
tabindex String false 0 Position of the element in the tabbing order.
toggleable boolean false true Makes the component toggleable.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc
Basic
Edit Me
Edit
PrimeFaces
Double Click
Cities
Custom Content
Yes or No
Image
Show
Password

Usage


<div class="card">
    <h:form>
        <h5 class="mt-0">Basic</h5>
        <p:inplace>
            <p:inputText value="Edit Me"/>
        </p:inplace>

        <h5>Edit</h5>
        <p:inplace editor="true">
            <p:inputText value="#{inplaceView.text}" required="true" label="text"/>
        </p:inplace>
        
        <h5>Double Click</h5>
        <p:inplace label="Cities" effectSpeed="fast" event="dblclick">
            <p:selectOneMenu>
                <f:selectItem itemLabel="New York" itemValue="0"/>
                <f:selectItem itemLabel="London" itemValue="1"/>
                <f:selectItem itemLabel="Paris" itemValue="2"/>
                <f:selectItem itemLabel="Berlin" itemValue="3"/>
            </p:selectOneMenu>
        </p:inplace>

        <h5>Custom Content</h5>
        <p:inplace effect="none">
            <f:facet name="output">
                Yes or No
            </f:facet>
            <f:facet name="input">
                <p:selectBooleanCheckbox/>
            </f:facet>
        </p:inplace>

        <h5>Image</h5>
        <p:inplace label="Show" effect="slide">
            <p:graphicImage name="/demo/images/nature/nature3.jpg"/>
        </p:inplace>

        <h5>Password</h5>
        <p:inplace>
            <p:password redisplay="true" value="#{inplaceView.password}"/>
        </p:inplace>
    </h:form>
</div>