title: calendar value coming even if it is empty on change using JSF
body: <p>I've a calendar tag on my xhtml, initially it has some value, and when I select the information using mouse and delete it, the change event still passes the old bean object data. How can I get it as null or empty </p>
  
  <p>Here is my code </p>
  
  <pre><code>&lt;p:calendar id="effDate" yearRange="c:c+1"
          pattern="MM/dd/yyyy" styleClass="effDate"           
          style="box-shadow : inset 0 -1px 2px #8f8f8f;position:relative; left:20px;" immediate="true"
          value="#{myBean.calDate}"&gt;
          &lt;f:convertDateTime pattern="MM/dd/yyyy" /&gt;
  
           &lt;p:ajax  event="change"  listener="#{myBean.onDateModified}" &gt;&lt;/p:ajax&gt;
  
      &lt;/p:calendar&gt;
  </code></pre>
  
  <p>How to achieve this?</p>