InputTextarea

InputTextarea extends standard InputTextarea with autoComplete, autoResize, remaining characters counter and theming features.

Documentation

AutoComplete

Following inputTextarea send a query for each word that has at least 4 characters to the complete method. Try typing "PrimeFaces".

AutoResize

Remaining Chars


<p:growl id="growl" showSummary="true" showDetail="true" keepAlive="true" life="3000">
    <p:autoUpdate />
</p:growl>

<h:form>            
    <h3 style="margin-top: 0">AutoComplete</h3>
    <p>Following inputTextarea send a query for each word that has at least 4 characters to the complete method. Try typing "PrimeFaces".</p>
    <p:inputTextarea rows="10" cols="50" completeMethod="#{inputTextareaView.completeArea}" queryDelay="750" minQueryLength="4">
       <p:ajax event="itemSelect" listener="#{inputTextareaView.onSelect}" />
    </p:inputTextarea>

    <h3>AutoResize</h3>
    <p:inputTextarea rows="6" cols="33" />

    <h3>Remaining Chars</h3>
    <p:inputTextarea rows="5" cols="30" counter="display" maxlength="10" counterTemplate="{0} characters remaining." autoResize="false" />
    <br />
    <h:outputText id="display" />
</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.