• 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
Theme
Theme
Preset primefaces.THEME
Apple Liquid Glass style: translucent overlays, menus and bars that blur the page behind them, capsule buttons.
Color scheme color-scheme
Input style p-input-filled
Density data-p-density
Direction primefaces.DIR
Colors
Primary --p-primary-base
Surface --p-surface-*
Shape and motion
Button shape --p-button-border-radius
Shadows --p-*-shadow
Animations --p-transition-duration
Ripple --p-ripple-opacity
Border radius --p-border-radius-*
Typography
Focus ring
Form field
CSS
Only the tokens that differ from the preset.

                        
                    

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
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
event String false click Client side event to trigger display of inline content.
widgetVar String false Deprecated, use ref instead. Name of the client side component.
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".
style String false Inline style of the component.
cancelLabel String false Cancel Label of the cancel button in editor mode.
saveLabel String false Save Label of the save button in editor mode.
label String false Label to display.
emptyLabel String false Label to display when value is empty.
toggleable boolean false true Makes the component toggleable.
mode String false output Mode of the component, valid values are "output" and "input".
ref String false generated ('pf_' + componentClientId) Name of the client side component, e.g. to access it via PF('name').
tabindex String false 0 Position of the element in the tabbing order.
effectSpeed String false normal Speed of the effect, valid values are "slow", "normal" and "fast".
styleClass String false Style class of the component.
id String false generated Unique identifier of the component in a namingContainer.
Loading...
Tag Documentation Documentation 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>