O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the InputTextarea component

InputTextarea is an extension to the standard JSF <h:inputTextarea> component with support for AutoComplete, autoResize, remaining characters counter, and theming features:

<p:inputTextarea cols="50" rows="5" value="#{userController.loginUser.bio}"/>

The <p:inputTextarea> component provides the following additional attributes in addition to the JSF <h:inputTextarea> attributes:

  • autoResize: Specifies auto growing when being typed. Default is true.
  • maxlength: Maximum number of characters that can be entered in this field.
  • counter: ID of the output component to display remaining characters.
  • counterTemplate: Template text to display in counter.
  • completeMethod: Method to provide AutoComplete suggestions.
  • minQueryLength ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required