title: How to send selected date of rich:calendar to my bean?
body: <p>I am using richfaces calendar in my JSF 1.1 project. If I select a date, I want to send the selected date to my bean. How can I do it? I write simple code for this but it comes always null.</p>
  
  <p>Here is my JSF page:</p>
  
  <pre><code>&lt;rich:panel style="width: 15%;"&gt;
      &lt;rich:calendar cellWidth="24px" cellHeight="22px" value="#{functions.selectedDate}"
          datePattern="yyyy-MM-dd" style="width:200px;"&gt;
      &lt;/rich:calendar&gt;
  &lt;/rich:panel&gt;
  </code></pre>
  
  <p>Here is my bean:</p>
  
  <pre><code>import java.util.Date;
  
  public class functions {
  
      private Date selectedDate;
  
      public Date getSelectedDate() {
          return selectedDate;
      }
  
      public void setSelectedDate(Date selectedDate) {
          this.selectedDate = selectedDate;
      }
  
  }
  </code></pre>