0 Replies Latest reply on Sep 9, 2009 6:12 AM by Andy Deighton

    richcalendar disappears after validation fails

    Andy Deighton Newbie

      This is driving me nuts!
      JBoss Seam 2
      RichFaces 3.3.1

      I have a rich:calendar in my page. It's looking good and works fine... unless I enter an invalid date (e.g. "/04/09"). As it's Ajax-enabled, as soon as I blur, the calendar and input field completely disappear from my page! All works fine if I enter a valid date.

      Has anyone seen this behaviour? Here's how the calendar is defined in my xhtml:

      <a4j:outputPanel id="calendarPanel" layout="block">
       <rich:calendar
       todayControlMode="select"
       eventsQueue="invoiceQueue"
       popup="true"
       enableManualInput="true"
       value="#{salesInvoice.issuedDate}"
       disabled="#{salesInvoice.issueDateType eq 'AUTOMATIC' or salesInvoiceAction.selectedLine ne null}"
       required="true"
       id="issueDate"
       datePattern="dd/MM/yyyy"
       firstWeekDay="1"
       immediate="true"
       cellWidth="18px" cellHeight="18px" style="width:200px"
       >
       <a4j:support event="oninputblur" ajaxSingle="true" reRender="datePanel,calendarPanel,lineItemsTable,messages"/>
       <a4j:support event="onchanged" ajaxSingle="true" reRender="datePanel,calendarPanel,lineItemsTable,messages"/>
       </rich:calendar>
       </a4j:outputPanel>