Note that there are some explanatory texts on larger screens.

plurals
  1. POsynchronization between two calendar in JSF2
    text
    copied!<p>I have two calendar I want when I input a date in the first Schedule I automatically displayed in the text area of ​​the second calendar. I tried with this code but no result:</p> <pre><code>&lt;dd&gt; &lt;f:validateBean validationGroups="#{param['validationGroup']}"&gt; &lt;p:calendar id="debutSortie" showOn="focus" locale="fr" pattern="dd/MM/yyyy" value="#{AAA.dateDebut}" styleClass="datepicker"&gt; &lt;p:ajax event="keyup" update="formDate:dateFin"/&gt; &lt;/p:calendar&gt; &lt;h:graphicImage styleClass="js-datepicker-focus" width="19" height="19" alt="Voir le calendrier" value="/statique/images/pictos/picto_calendrier.png"/&gt; &lt;/f:validateBean&gt; &lt;/dd&gt; &lt;dt&gt; &lt;h:outputLabel for="finSortie_input"&gt;Date Fin : &lt;/h:outputLabel&gt; &lt;/dt&gt; &lt;dd&gt; &lt;f:validateBean validationGroups="#{param['validationGroup']}"&gt; &lt;p:calendar id="dateFin" showOn="focus" locale="fr" value="#{AAA.dateFin}" pattern="dd/MM/yyyy" styleClass="datepicker"&gt; &lt;/p:calendar&gt; &lt;h:graphicImage styleClass="js-datepicker-focus" width="19" height="19" alt="Voir le calendrier" value="/statique/images/pictos/picto_calendrier.png"/&gt; &lt;/f:validateBean&gt; &lt;/dd&gt; </code></pre> <hr> <p>I added this method to test </p> <pre><code>public void dateChangedListener(DateSelectEvent event) { System.out.println("DateSelectEvent" +event.getDate()); } </code></pre> <p>but I have this error message:</p> <pre><code> javax.faces.FacesException: Method not found: bean@31f8fd9.dateChangedListener(javax.faces.event.AjaxBehaviorEvent) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload