3 Replies Latest reply on Nov 3, 2009 10:22 AM by Thamir Alshammari

    rich:calendar help!

    Thamir Alshammari Newbie

      I'm binding a rich:calendar component with a java.util.date in order to let the user pick the desirable date, but when I submit the form, rich:calendar doesn't call setter and getter methods

      jsf page:

      
      <h:form>
      .....
      
      <rich:calendar mode="ajax"
      value="#{advertisementAction.issueDate}"
      currentDate="#{advertisementAction.issueDate}"
      popup="true"
      enableManualInput="true"
      disabled="false"
      monthLabelsShort="true"
      showFooter="false"
      datePattern="yyyy-MM-dd"
      immediate="true" >
       <a4j:support event="onchanged" ajaxSingle="true"/>
      </rich:calendar>
      
      ....
      
      <h:commandButton .....
      action="#{advertisementAction.insertAdvertisement}" ..../>
      ....
      
      </h:form>
      


      java bean (AdvertisementAction)
      .......
      private java.util.Date issueDate;
      ........
      
       public java.util.Date getIssueDate() {
       return issueDate;
       }
      
       public void setIssueDate(java.util.Date issueDate) {
       this.issueDate = issueDate;
       }
      


      please help to figure out why rich:calender doesn't update the date instance