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

ImageCropper

ImageCropper can load the image dynamically using StreamedContent.


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

        <h:panelGrid columns="3">
            <h:panelGrid columns="1">

                <p:spinner id="iterationSpinner"
                           value="#{dynamicCropper.numberOfIterations}"
                           min="5" max="50" stepFactor="5"
                           styleClass="mb-3">
                    <p:ajax process="@this" update="cropper"/>
                </p:spinner>

                <h:panelGrid columns="2" cellpadding="7">
                    <p:outputPanel id="cropper">
                        <p:imageCropper
                                value="#{dynamicCropper.croppedImage}"
                                id="streamed_cropper" cache="false"
                                image="#{dynamicCropper.image}"
                                initialCoords="50,50,150,100"
                                minSize="50,50" maxSize="350,350"/>
                    </p:outputPanel>
                    <p:outputPanel id="cropped">
                        <p:graphicImage
                                rendered="#{not empty dynamicCropper.newImageName}"
                                name="demo/images/crop/#{dynamicCropper.newImageName}"/>
                    </p:outputPanel>
                </h:panelGrid>

                <p:commandButton value="Crop"
                                 action="#{dynamicCropper.crop}" styleClass="mt-3"
                                 update="cropped msgs" />

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