8 Replies Latest reply on Dec 7, 2008 5:33 PM by Igor Dikhtyaruk

    Calendar changes the empty input to previous value

    Igor Dikhtyaruk Newbie

      Hi,

      below is an example, when you have a rich:calendar and validation on change with reRender the calendar input.
      If you enter a value and hit "Search" link, then after that you'll not be able to clean the calendar input - it will change it back to the previous value. I don't think this is a correct JSF behaviour.

      <h:form>
       <h:outputText value="From" />
       <rich:calendar id="fromDate" datePattern="dd MMM yyyy"
      value="#{bean.entryDateStart}" enableManualInput="true" popup="true">
       <a4j:support
       ajaxSingle="true"
       event="oninputblur"
       reRender="fromDate"
       bypassUpdates="true"/>
       </rich:calendar>
       <a4j:commandLink value="search" action="#{bean.doSearch}"/>
      </h:form>
      

      Can that be related to https://jira.jboss.org/jira/browse/RF-3858?
      Thanks,
      Igor