This content has been marked as final. 
    
Show                 1 reply
    
- 
        1. Re: Field validation on blur and on submitidyoshin Feb 2, 2010 8:57 PM (in response to faffinito)try the following. to your validator (hope that is SEAM-managed validator) add property boolean onBlur = false; and assuming your input text is decorated inside of some <div id="lastNameField" /> with messages add following: <h:inputText id="lastName" required="true" size="38" maxlength="16" value="#{personHome.instance.taxCode}" converter="#{upperCaseConverter}" style="text-transform:uppercase" validator="taxcodeValidator"> <a4j:support event="onblur" reRender="lastNameField"> <f:setPropertyActionListener value="#{true}" target="#{taxcodeValidator.onBlur}" /> </a4j:support> </h:inputText>and inside of your taxcodeValidator create simple if which would run different validation, and don't forget to set onBlur=false before leaving validation method. Hope that would be helpful. Regards, Ilya Dyoshin 
 
    