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

Time for action – using password strength indicator and match mode

Let us see how to implement the Change Password screen using <p:password> components:

  1. Create the Change Password form:
    <h:form id="changePwdForm"> <p:messages id="messages" showDetail="true" autoUpdate="true"/> <p:panel header="Change Password"> <h:panelGrid columns="2"> <p:outputLabel for="oldPwd" value="Current Password"/> <p:password id="oldPwd" value="#{userController.changePwd.currentPwd}" required="true"/> <p:outputLabel for="newPwd" value="New Password"/> <p:password id="newPwd" value="#{userController.changePwd.newPwd}" feedback="true" promptLabel="Enter New Password" weakLabel="Weak Password" goodLabel="Good Password" strongLabel="Strong Password" match="confPwd" required="true"/> ...

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