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 Password component

The Password component is an extended version of the standard JSF <h:inputSecret> component with theme integration, strength indicator, and match mode support.

A basic Password component can be created as follows:

<p:password value="#{userController.registerUser.password}" />

We can also provide feedback on the strength of the password using the feedback attribute. As you type in the password field, it will provide feedback on whether the entered password is Weak, Good, or Strong based on the combination of characters used.

Password strength is determined by the characters used in the ranges [0-9], [a-z, A-Z], and [!@#$%^&*?_~.,;=]:

<p:password value="#{userController.loginUser.password}" feedback="true"/>

By default, ...

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