title: p:calendar value not updated with dateSelect
body: <p>I have got a p:calendar component inside a p:dialog one. When dialog is shown it takes its value from property in back bean, but when a new date is selected, the SelectEvent arrived to the listener brings the old value and not the new selected date. What is wrong on next code?</p>
  
  <pre><code>   &lt;p:dialog id="eventDialog" widgetVar="eventDialog" header="#{textos.confirmarFechaHora}" showEffect="clip" 
           hideEffect="clip" modal="true"
           appendToBody="true"&gt; &lt;!-- A false, no entran los eventos tras modificar la fecha/hora del calendario --&gt; 
    &lt;h:panelGrid id="eventDetails" columns="2"&gt;  
       &lt;h:outputLabel for="calHora" value="#{textos.horaComienzo}" /&gt;  
       &lt;p:calendar id="calHora" locale="es" pattern="dd/MM/yyyy HH:mm" 
                   value="#{schedulePFController.fechaComienzo}" mode="inline"
                   required="true"
                   accesskey="true" valueChangeListener="#{schedulePFController.cambiaHoraComienzoVCL}"&gt;
          &lt;p:ajax event="dateSelect" listener="#{schedulePFController.cambiaHoraComienzo}"/&gt;
       &lt;/p:calendar&gt;
       &lt;p:commandButton value="#{textos.cancelar}" oncomplete="eventDialog.hide();"/&gt;  
       &lt;p:commandButton value="#{textos.mostrarCitas}" 
                        action="#{schedulePFController.verEntradaCalendario}" 
                        rendered="#{schedulePFController.clickedOnCita}"/&gt;
       &lt;p:commandButton value="#{textos.addCita}" 
                        action="#{schedulePFController.addCita}" 
                        rendered="#{!schedulePFController.clickedOnCita}"/&gt;
    &lt;/h:panelGrid&gt;
  </code></pre>
  
  <p>  </p>
  
  <pre><code>public void cambiaHoraComienzo(SelectEvent ev) {
    Date date = (Date)ev.getObject();
    fechaComienzo = date;
    horaComienzo = new DateCita(date);
    logger.debug("Cambiando fechaComienzo "+horaComienzo.toString()+" +++++++++++++++++++++++++++++++++++++++++");}
  </code></pre>