public class EmailValidator extends Object implements javax.faces.validator.Validator, org.primefaces.validate.ClientValidator
| Constructor and Description |
|---|
EmailValidator()
Initialize the pattern with the EMAIL regex.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getMetadata()
Not implemented method, always return null.
|
String |
getValidatorId()
Return the Id of the validator.
|
void |
validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Validate an email.
|
public EmailValidator()
public void validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
throws javax.faces.validator.ValidatorException
ValidatorException
will be thrown containing the FacesMessage
describing the failure.validate in interface javax.faces.validator.Validatorcomponent - UIComponent we are checking for correctnessvalue - the value to validatejavax.faces.validator.ValidatorException - if validation failsNullPointerException - if context or component is
nullpublic Map<String,Object> getMetadata()
getMetadata in interface org.primefaces.validate.ClientValidatorpublic String getValidatorId()
getValidatorId in interface org.primefaces.validate.ClientValidatorCopyright © 2018. All rights reserved.