Time for action – using password strength indicator and match mode
Let us see how to implement the
Change Password screen using <p:password>
components:
- 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"...