I'm using rich:calendar being coupled with an entity's field of type java.util.Date. This field is annotated with @Past of Hibernate Validator. So far everything is working fine.
Now I want to use the new <rich:ajaxValidator>, but had no success in catching the event when a date is selected. Any hint is appreciated!
This is my code fragment:
<h:outputLabel value="#{i18n['createEinenKunden.seit']}" for="seit"/> <rich:calendar id="seit" showInput="true" datePattern="#{i18n['calendar.pattern']}" value="#{kv.neuerFirmenkunde.seit}"> <rich:ajaxValidator event="onchange" reRender="seit, fehlermeldungSeit"/> </rich:calendar> <rich:message id="fehlermeldungSeit" for="seit" errorClass="error"> <f:facet name="errorMarker"> <h:graphicImage url="/images/error.gif"/> </f:facet> </rich:message>
you should use oncahnged event instead of onchange.