JARCH SHOWCASE
JARCH SHOWCASE
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.
<a:form>
    <a:growl autoUpdate="true" />

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

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

    <a:outputPanel id="output">
        <h:outputText rendered="#{not empty signatureView.value}" style="font-size:24px;display:block" value="Your Signature" />
        <a:signature style="width:400px;height:200px;" value="#{signatureView.value}" readonly="true"
                     rendered="#{not empty signatureView.value}" backgroundColor="#eaeaea" color="#03a9f4"/>
    </a:outputPanel>
</a:form>
                
JARCH, Copyright © 2022 All rights reserved. Running JARCH 24.3.0-SNAPSHOT on PrimeFaces-12.0.0 on Mojarra-2.3.13.