3 Replies Latest reply on Jan 12, 2010 11:44 AM by Rodrigo Uchoa

    rich:calendar onchanged/oninputchange does not work on IE 7

    Rodrigo Uchoa Novice

      Hello,

       

      I need to add an "onchange" event in a rich:calendar element. Problem is the two events mentioned above, onchanged and oninputchange, are not working correctly on IE 7. As a matter of fact, I think only "oninputblur" is firing correctly on IE 7.

       

      In Firefox 3, only oninputchange works ok. Here's a code snippet of what I'm trying to do:

       

       

      <rich:calendar label="Vigência" id="dataVigencia" value="#{concessao.dataVigencia}" datePattern="dd/MM/yyyy" inputSize="7" enableManualInput="true" oninputblur="mascaraData(this);" maxlength="10" oninputkeypress="return formataData(event, this);" firstWeekDay="0" showWeeksBar="false" todayControlMode="hidden" validator="#{dadosConcessaoBean.validarDataVigencia}">
                                  <f:attribute name="dataPublicacao" value="dadosConcessaoForm:concessaoPublicacaoData" />
                                  <f:validator validatorId="dataRangeValidator" />
                                  <f:validator validatorId="dataObitoValidator" />
                                  <a4j:support event="oninputchange" reRender="divAto, divVantagens" ajaxSingle="true" status="statusAjax" eventsQueue="atoTabControl" />                           
      </rich:calendar>

       

      Anyone have a clue?

       

      ps: I'm using richfaces 3.3.1 GA