Signature

Signature is used to draw a signature as an input. Various options such as background color, foreground color, thickness are available for customization. Signature also supports touch enabled devices and legacy browsers without canvas support.

Documentation
<h:form>
    <p:growl>
        <p:autoUpdate />
    </p:growl>

    <p:signature style="width:400px;height:200px" widgetVar="sig" value="#{signatureView.value}" required="true" guideline="true"/>

    <div style="margin:20px 0">
        <p:commandButton value="Submit" icon="pi pi-check" update="output"/>
        <p:commandButton value="Clear" icon="pi pi-times" type="button" onclick="PF('sig').clear()"/>
    </div>

    <p:outputPanel id="output">
        <h:outputText rendered="#{not empty signatureView.value}" style="font-size:24px;display:block" value="Your Signature" />
        <p:signature style="width:400px;height:200px;" value="#{signatureView.value}" readonly="true"
                     rendered="#{not empty signatureView.value}" backgroundColor="#eaeaea" color="#03a9f4"/>
    </p:outputPanel>
</h:form>

FREE THEMES

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

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

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