1 Reply Latest reply on Jun 3, 2010 10:16 AM by Ilya Shaikovsky

    Validator in comboBox with onblur event

    rouven gorsky Newbie

      Dear all

      Please study the following comboBox in my jsf:

      <rich:comboBox id="cities" >
                       <f:selectItems value="#{myBean.cities}"  />
                      <f:validator validatorId="myValidator" />
                      <rich:ajaxValidator event="onblur"   />



      The validator "myValidator" should do some validating when the  onblur event is called. It works, at least when I select an  entry from the list
      and leave the combobox. However when I click into the  combobox, not selecting anything and then leave the combox the onblur event
      seems not to be fired: the validator method doesn't run. The  same thing happens when I vist and leave the combox with tab-key.
      Anyone has an idea why that is an what I could do? Thanks for your help.

        • 1. Re: Validator in comboBox with onblur event
          Ilya Shaikovsky Master

          please try the latest version of RF. In general it's a problem of JSF it's not validates the null values - only do that if required specified but if required false - not. So we implemented wrapper classes for almost all inputs.. I guess comboBox should works too in latest version. JSF itself adresses this problem only in 2.0 version by providing application context param.