PrimeFaces provides a very nice and easy way to do partial input validation of forms.
<h:form> <p:inputText value="#{bean.name}" id="name"> <p:ajax event="blur" process="@this" update="nameMsg" /> <p:message for="name" id="nameMsg"/> </h:form>
The validation constraints can either be defined the classic JSF-way (not recommended) or using JSR303 Bean Validation Annotations.
But keep in mind if you have any cross-validation, this could lead to failed validations, as there is only the one inputText processed.
Advertisements
I m doing validation in dropdown and calender like that but it can’t working properly……………. i need help
<!– –>
and
<!– –>
<!-- -->