Locale

Change the locale of the datepicker, schedule and client side validation messages.

Language
English
French
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Czech
Greek
Persian
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Lithuanian
Latvian
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
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

ImageCropper

ImageCropper can work tightly with FileUpload handling images on the fly.

Choose

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

        <p:fileUpload mode="advanced"
                      multiple="false"
                      sizeLimit="102400" allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
                      invalidSizeMessage="Maximum file size allowed is 100 KB"
                      invalidFileMessage="only gif | jpg | jpeg | png is allowed"
                      update="messages cropperPanel"
                      listener="#{cropUploaderBean.handleFileUpload}"/>

        <p:outputPanel id="cropperPanel">

            <h:panelGrid columns="1" rendered="#{not empty cropUploaderBean.originalImageFile}">

                <p:commandButton value="Crop"
                                 action="#{cropUploaderBean.crop}"
                                 update="cropped messages" styleClass="my-3"/>

                <h:panelGrid columns="2" cellpadding="7">

                    <p:imageCropper
                            value="#{cropUploaderBean.croppedImage}"
                            id="imageCropper" cache="false"
                            image="#{cropUploaderBean.image}"
                            initialCoords="50,50,150,100"
                            minSize="50,50" maxSize="350,350"/>

                    <p:outputPanel id="cropped">
                        <p:graphicImage cache="false"
                                        rendered="#{not empty cropUploaderBean.croppedImage}"
                                        value="#{cropUploaderBean.cropped}"/>
                    </p:outputPanel>

                </h:panelGrid>

                
            </h:panelGrid>
        </p:outputPanel>
    </h:form>
</div>