0 Replies Latest reply on Aug 19, 2013 9:53 AM by danjg

    How to prevent <f:validation> to be invoked on form submit?

    danjg Newbie

      I have the following code snippet:

       

       

      {code:xml}

      <h:inputText id="txtPercReqAmount" maxlength="6" style="width:75px;text-align:right;" value="#{pib.reservedPercentage}">

                <a4j:support event="onchange" ajaxSingle="true" action="#{requestForm.onReservedPercentageChange(pib)}" reRender="txtReqAmount,txtBudget"/>

                <f:validator validatorId="validatePercentage"/>

      </h:inputText>

      {code}

       

      I'd like to fire the validation only on the input change event and not on form submit. Is it possible with <f:validator> or can you suggest another simple solution?