Locale

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

Input Style

Free Themes

Built-in component themes created by the PrimeFaces Theme Designer.

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

ClockPicker

ClockPicker is a clock-style timepicker.

AM/PM with Auto-Close
24 Hour with Manual Close Mode
Open In Dialog


<h:form>
    <div class="card">
        <p:growl showDetail="true" showSummary="true">
            <p:autoUpdate/>
        </p:growl>

        <div>
            <h5>AM/PM with Auto-Close</h5>
            <div class="flex">
                <pe:clockpicker id="autoclose" widgetVar="autocloseWidget" autoClose="true"
                                value="#{clockPickerView.time}"
                                twelveHour="true" locale="es"/>
                <p:commandButton id="submitButton" value="Submit"
                                 actionListener="#{clockPickerView.showTime1}" update="@form"
                                 styleClass="ml-2" icon="pi pi-save"/>
            </div>

            <h5>24 Hour with Manual Close Mode</h5>
            <pe:clockpicker id="closeable" widgetVar="closeableWidget" autoClose="false"
                            value="#{clockPickerView.time2}" showOn="button">
                <p:ajax listener="#{clockPickerView.showTime2}"/>
            </pe:clockpicker>

            <h5>Open In Dialog</h5>
            <p:commandButton value="Open Dialog" type="button" icon="pi pi-external-link"
                             onclick="PF('dlg1').show()"/>

            <p:dialog header="ClockPicker" widgetVar="dlg1" height="350" width="350" showEffect="fade"
                      closeOnEscape="true">
                <pe:clockpicker id="dlgClockPicker" widgetVar="dialogClockPickerWidget" autoClose="false"
                                value="#{clockPickerView.time3}" showOn="button">
                    <p:ajax listener="#{clockPickerView.showTime3}"/>
                </pe:clockpicker>
            </p:dialog>

            <p></p>

            <p:commandButton type="button" value="Disable clock pickers" styleClass="mt-2 mr-2"
                             onclick="PF('autocloseWidget').disable();PF('closeableWidget').disable();"/>
            <p:commandButton type="button" value="Enable clock pickers" styleClass="mt-2 mr-2"
                             onclick="PF('autocloseWidget').enable();PF('closeableWidget').enable();"/>

        </div>
    </div>
</h:form>