Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA