0 Replies Latest reply on Sep 11, 2009 5:31 AM by andyxr

    Validating rich calendar when enableManualInput=true

      Hi all.

      My rich calendar (3.3.1GA) uses enableManualInput=true.
      It's also decorated.
      If I enter a bad date (e.g. "sasdasd"), the field doesn't get decorated correctly to show it's in error, and my logs show "FacesMessage(s) have been enqueued, but may not have been displayed. sourceId=salesInvoice:dateDecorator:issueDate[severity=(ERROR 2), summary=....". The ID of the calendar is indeed "issueDate" but RichFaces gives the input field an ID of "issueDateInputDate".
      I'm wondering; is this why the field is not being decorated?
      Here's my calendar:

      <s:decorate id="dateDecorator" for="issueDate">
      <rich:calendar
       eventsQueue="invoiceQueue"
       enableManualInput="true"
       value="#{salesInvoice.issuedDate}"
       required="true"
       id="issueDate"
       datePattern="dd/MM/yyyy"
       reRender="dateDecorator, issueDate, issueDateInputDate">
      
       <a4j:support event="oninputblur" ajaxSingle="true" bypassUpdates="true" reRender="datePanel,dateDecorator,lineItemsTable,messages"/>
       <a4j:support event="onchanged" ajaxSingle="true" reRender="datePanel,dateDecorator,lineItemsTable,messages"/>
      </rich:calendar>
      </s:decorate>