2.8 and Primefaces 6.0 And i want to retrieve the value of a date from my xhtml to make specific treatments Before submitting my form.
But the value of the date is always null in the bean Before submitting.
Here is my XHTML
                            <p:outputLabel for="dateDebut" value="Date Debut"/>
                        <p:calendar id="dateDebut" value="#{etpBean.dateDebut}" required="true">
                            <p:ajax listener="#{etpBean.listenerDateDebut}" event="change"/>
                        </p:calendar>
And here is my function in my bean
public Date listenerDateDebut(){
    return dateDebut;
}
 
    