Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
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