1 Reply Latest reply on Sep 18, 2012 2:45 AM by iabughosh

    how to do password, confirmPassword verification after confirmPassowrd value entered

    Wingman Boby Newbie

      Hi  i have password, confirmPassword verification   its working fine when i click on submit button, but

      i want to do this operation once my confirmPassowrd value entered please suggest.

       

       

       

      <h:form id="form2">

        <rich:graphValidator value="#{userBean}" id="gv">

        <rich:panel header="Change password" style="width:500px">

        <rich:messages for="gv" />

        <rich:messages globalOnly="true" />

        <h:panelGrid columns="3">

        <h:outputText value="Enter new password:*" />

        <h:inputSecret value="#{userBean.password}" id="pass">

        <a4j:ajax event="keyup"  render="password" />

        </h:inputSecret>

        <rich:message for="pass" />

       

        <h:outputText value="Confirm the new password:" />

        <h:inputSecret value="#{userBean.confirmpassword}" id="conf">

        <a4j:ajax event="keyup"  render="confirmpassword" />

        </h:inputSecret>

        <rich:message for="conf" />

        </h:panelGrid>

        <a4j:ajax event="keyup"  render="gv" />

        <a4j:commandButton value="VERIFY PASSWORD"

        action="#{userBean.addUser}" />

        </rich:panel>

        </rich:graphValidator>

        </h:form>