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

Resizable

Resizable adds resize handlers to the target component.

Resizable Tag Documentation

Resizable component that has the ability to make a component resizable. It can be used on various components like resize an input field, panels, menus, images and more.

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.
animate boolean false false Enables animation.
aspectRatio boolean false false Defines if aspectRatio should be kept or not.
containment boolean false false Sets resizable boundaries as the parents size.
effect String false swing Effect to use in animation. Default is swing.
effectDuration String false normal Effect duration of animation. Default is normal.
for String false Identifier of the target component to make resizable.
ghost boolean false false In ghost mode, resize helper is displayed as the original element with less opacity.
grid int false 1 Snaps resizing to grid structure.
handles String false Specifies the resize handles.
maxHeight int false Integer.MAX_VALUE Maximum height boundary in pixels. Default is max integer value.
maxWidth int false Integer.MAX_VALUE Maximum width boundary in pixels. Default is max integer value.
minHeight int false Integer.MIN_VALUE Maximum height boundary in pixels. Default is min integer value.
minWidth int false Integer.MIN_VALUE Minimum width boundary in pixels. Default is min integer value.
onResize String false Client side callback to execute during resizing.
onStart String false Client side callback to execute when resizing begins.
onStop String false Client side callback to execute after resizing end.
proxy boolean false false Displays proxy element instead of actual element.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc
Basic
Resizable Panel
Aspect Ratio
Resize with aspect ratio
Ghost
A ghost is displayed during resize
Animated
Animation enabled while resizing
Boundaries
Min and Max boundaries
Grid
Resize offset set to 20 pixels.
Handles
Can be resized to any direction.
Containment
Restricted to parent element boundaries.
Ajax Callback

Usage


<div class="card">
    <p:panel id="basic" header="Basic" styleClass="mb-2">
        Resizable Panel
    </p:panel>
    <p:resizable for="basic"/>

    <p:panel id="aspectRatio" header="Aspect Ratio" styleClass="mb-2">
        Resize with aspect ratio
    </p:panel>
    <p:resizable for="aspectRatio" aspectRatio="true"/>

    <p:panel id="ghost" header="Ghost" styleClass="mb-2">
        A ghost is displayed during resize
    </p:panel>
    <p:resizable for="ghost" ghost="true"/>

    <p:panel id="animation" header="Animated" styleClass="mb-2">
        Animation enabled while resizing
    </p:panel>
    <p:resizable for="animation" animate="true" effect="swing" effectDuration="normal"/>

    <p:panel id="boundaries" header="Boundaries" style="width:300px;height:150px;" styleClass="mb-2">
        Min and Max boundaries
    </p:panel>
    <p:resizable for="boundaries" minWidth="200" maxWidth="400" minHeight="100" maxHeight="200"/>

    <p:panel id="grid" header="Grid" styleClass="mb-2">
        Resize offset set to 20 pixels.
    </p:panel>
    <p:resizable for="grid" grid="20"/>

    <p:panel id="handles" header="Handles" styleClass="mb-2">
        Can be resized to any direction.
    </p:panel>
    <p:resizable for="handles" handles="e,w,n,se,sw,ne,nw"/>

    <p:outputPanel id="containmentPanel" layout="block"
                   style="width:400px;height:200px;border:2px solid var(--surface-d);">
        <p:panel id="containment" header="Containment">
            Restricted to parent element boundaries.
        </p:panel>
        <p:resizable for="containment" containment="true"/>
    </p:outputPanel>

    <h5>Ajax Callback</h5>
    <h:form>
        <p:growl id="growl" showDetail="true"/>

        <p:graphicImage id="nature" name="demo/images/nature/nature5.jpg" styleClass="shadow-1" />

        <p:resizable for="nature" animate="true" ghost="true">
            <p:ajax listener="#{resizableView.onResize}" update="growl"/>
        </p:resizable>
    </h:form>
</div>