8 Replies Latest reply on May 12, 2010 3:35 PM by gvorsterman

    Why I have problems with some RichFaces components?

      I think some RichFaces components doesn't work in my project. I don't understand why.

      I'll show you very simple example with rich:calendar.

      In the page I put this:


      <rich:calendar id="dayCalendar"
      value="#{accounting.fromDate}"
      currentDate="#{accounting.fromDate}"
      popup="true"
      datePattern="dd.MM.yyyy"
      showApplyButton="false" cellWidth="24px" cellHeight="22px"
      style="width:200px"
      immediate="true">
      </rich:calendar>


      And in the bean I have this code:


      `private Date fromDate;

      public Date getFromDate() {
      return fromDate;
      }

      public void setFromDate(Date fromDate) {
      this.fromDate = fromDate;
      }`

      I expected that rich:calendar set "fromDate" variable when I change date. But "setFromDate" method never called.
      "getFromDate" called at once when I try to open the page. I want to call "setFromDate" changing date, but it doesn't work. WHY????????????????????