org.apache.myfaces.custom.emailvalidator

Class EmailValidator

Implemented Interfaces:
Validator

public class EmailValidator
extends java.lang.Object
implements Validator

Version:
$Revision: 169649 $ $Date: 2005-05-11 17:47:12 +0200 (Wed, 11 May 2005) $
Author:
mwessendorf (latest modification by $Author: grantsmith $)

Field Summary

static String
EMAIL_MESSAGE_ID
The message identifier of the FacesMessage to be created if the maximum length check fails.
static String
VALIDATOR_ID
The standard converter id for this converter.

Constructor Summary

EmailValidator()

Method Summary

void
validate(FacesContext facesContext, UIComponent uiComponent, Object value)
methode that validates an email-address.

Field Details

EMAIL_MESSAGE_ID

public static final String EMAIL_MESSAGE_ID
The message identifier of the FacesMessage to be created if the maximum length check fails.

VALIDATOR_ID

public static final String VALIDATOR_ID
The standard converter id for this converter.

Constructor Details

EmailValidator

public EmailValidator()

Method Details

validate

public void validate(FacesContext facesContext,
                     UIComponent uiComponent,
                     Object value)
            throws ValidatorException
methode that validates an email-address. it uses the commons-validator