Home » Primefaces Ajax Validation

Primefaces Ajax Validation

by Online Tutorials Library

PrimeFaces Ajax Validation

PrimeFaces provides validation tags to validate our data at server side. The <p:ajax> is used to perform Ajax validation. Here, we are creating an example that takes two inputs and validate at server side.

This example includes the following files.

JSF File

// ajax-validation.xhtml

ManagedBean

// AjaxValidation.java

It produces the following output after execution.

Output:

PrimeFaces Validation 1

It validates data at client side and produces the following data.

PrimeFaces Validation 2

You may also like