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
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
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeOne
Saga Saga
Vela Vela
Arya Arya
Bootstrap
bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple
Material Design
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple
Material Design Compact
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple

FileUpload Drag and Drop

In supported browsers, a file can be selected by dragdrop from filesystem. FileUpload component itself is the drop zone.

Basic
Choose
Drop Zone
Drop on the text area to upload, or choose.

<style>
    body .ui-inputfield.ui-state-drag {
        background: #ffffd6;
    }
</style>

<div class="card">
    <h:form>
        <p:growl id="messages" showDetail="true"/>

        <h5>Basic</h5>
        <p:fileUpload listener="#{fileUploadView.handleFileUpload}" mode="advanced" dragDropSupport="true"
                      update="messages">
                <p:validateFile sizeLimit="100000" allowTypes="/(\.|\/)(gif|jpeg|jpg|png)$/" />
        </p:fileUpload>

        <h5>Drop Zone</h5>
        <div class="ui-fluid">
            <div class="field">
                <p:inputTextarea id="customDropZone" widgetVar="textarea"
                                 rows="5" value="#{fileUploadView.dropZoneText}"/>
                <small>
                    Drop on the text area to upload, or
                    <p:link value="choose" onclick="PF('uploadDnd').show();return false" style="font-size:inherit"/>.
                </small>
            </div>
        </div>
        <p:fileUpload widgetVar="uploadDnd" listener="#{fileUploadView.handleFileUploadTextarea}"
                      sizeLimit="100000" allowTypes="/(\.|\/)(gif|jpeg|jpg|png)$/" dropZone="customDropZone"
                      style="display: none"/>
    </h:form>
</div>