Im a newbie on JSF
I want to validate the date the user is adding on the "Calendar",
using the event "KeyUp" and ajax, but, it doesn't work. anyone can help me?
Thanks .
<p:calendar id="fechaNacimiento" value="#{funcionarioController.funcionario.persona.fechaNac}"
pattern="dd/MM/yyyy" yearRange="c-60:c" navigator="true" locale="es" showOn="button"
size="30" maxlength="10" maxdate="#{personaController.fecha}"
required="true" requiredMessage="Ingrese su Fecha de Nacimiento">
<f:convertDateTime pattern="dd/MM/yyyy" timeZone="#{personaController.timeZone}"/>
<f:validator validatorId="de.common.DateValidator" />
<p:ajax event="dateSelect" listener="#{funcionarioController.dateChange}" update=":acpCv:messages"/>
<p:ajax event="keyup" update="" listener="#{funcionarioController.validateDate}"/>
</p:calendar>
and my controller JAVA :
public void validateDate(){
System.out.println("Validation Date");
}