2 Replies Latest reply on May 29, 2009 6:27 PM by dragos cernahoschi

    ajaxValidator problem - messages erased

    dragos cernahoschi Newbie

      I have a form with multiple inputs. All of them have rich:ajaxValidators, and some of them have a4j:support or rich:suggestionboxes attached too. Like the following:

      <div>
       <span class="name">
       <h:outputText value="#{messages['bankAccount.iban']}"/>:
       </span>
      
       <span class="value">
       <h:inputText id="iban" value="#{invoice.clientData.iban}" style="width: 223px;" tabindex="40">
       <rich:ajaxValidator event="onblur" />
       <a:support event="onchange" immediate="true" action="#{invoicing.autocompleteBankName}"
       ajaxSingle="true" reRender="bankNameDecoration"/>
       </h:inputText>
       </span>
      
       <rich:message for="iban" styleClass="error">
       <f:facet name="passedMarker">
       <h:graphicImage value="/img/passed.gif" />
       </f:facet>
       <f:facet name="errorMarker">
       <h:graphicImage value="/img/error.gif" />
       </f:facet>
       </rich:message>
      </div>
      


      The problem is that "onblur" the inputs that have a4j:support or suggestionboxes attached erase the validation messages of the other inputs.
      The inputs that only have ajaxValidators works normally.
      The messages are generated by hibernate validators. Any idea what I am missing?

      Thank you.