Easy learning with example program codes

Jsf validator tag tutorial


Validation is a process of checking something against a standard.

What is a validator?

In programming validator is used to perform the validation process.

JSF validator tags:

JSF provides inbuilt validators to validate the UI component data. JSF validators can validates length, type, format etc.

For using JSF validator tags we have to use the following namespaces of URI in html node.


Commonly used JSF validator tags:

Tag Description
f:validateLength It validates length of a string
f:validateLongRange It validates range of numeric value
f:validateDoubleRange It validates range of float value
f:validateRegex It validates JSF component with a given regular expression.
f:validateRequired It validates that the input field is not empty. 
Custom Validator It creates a custom validator


Industrial Training

We offers Placement Oriented Training on Java, Spring, JSF, Hibernate, PHP, AngularJS, Angular 4, PLSQL, Oracle BI Publisher etc. We also provides Online training, please mail us at


We also provides the Development services for Website Development , Java Development, PHP Development, Android App Development etc. You can contact us on

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki