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

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.

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" styleClass="p-mb-3"
                           value="#{dynamicCropper.numberOfIterations}"
                           min="5" max="50" stepFactor="5"
                           valueChangeListener="#{dynamicCropper.updateImage}">
                    <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="p-mt-3"
                                 update="cropped msgs" />

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