org.apache.myfaces.commons.validator
Class ISBNValidator
java.lang.Object
org.apache.myfaces.commons.validator.ValidatorBase
org.apache.myfaces.commons.validator.ISBNValidator
- All Implemented Interfaces:
- EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator
@JSFValidator(name="mcv:validateISBN",
tagClass="org.apache.myfaces.commons.validator.ValidateISBNTag",
serialuidtag="5230653358032218656L")
public class ISBNValidator
- extends ValidatorBase
A custom validator for isbn codes, based upons Jakarta Commons.
- Version:
- $Revision: 1021620 $ $Date: 2010-10-11 23:09:48 -0500 (Mon, 11 Oct 2010) $
- Author:
- Matthias Weßendorf (latest modification by $Author: lu4242 $)
Field Summary |
static String |
ISBN_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. |
Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
Method Summary |
void |
validate(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object value)
methode that validates isbn codes. |
Methods inherited from class org.apache.myfaces.commons.validator.ValidatorBase |
getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStringValue, getSummaryMessage, getValueExpression, isTransient, restoreAttachedState, restoreState, saveAttachedState, saveState, setDetailMessage, setMessage, setSummaryMessage, setTransient, setValueExpression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATOR_ID
public static final String VALIDATOR_ID
The standard converter id for this converter.
- See Also:
- Constant Field Values
ISBN_MESSAGE_ID
public static final String ISBN_MESSAGE_ID
The message identifier of the FacesMessage
to be created if
the maximum length check fails.
- See Also:
- Constant Field Values
ISBNValidator
public ISBNValidator()
validate
public void validate(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object value)
throws javax.faces.validator.ValidatorException
- methode that validates isbn codes.
it uses the commons-validator
- Throws:
javax.faces.validator.ValidatorException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.