org.apache.myfaces.html5.demo.validator
Class PromoCodeValidator
java.lang.Object
org.apache.myfaces.html5.demo.validator.PromoCodeValidator
- All Implemented Interfaces:
- EventListener, javax.faces.validator.Validator, ClientSidePatternProvider
public class PromoCodeValidator
- extends Object
- implements javax.faces.validator.Validator, ClientSidePatternProvider
| Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PromoCodeValidator
public PromoCodeValidator()
getPattern
public String getPattern()
- Specified by:
getPattern in interface ClientSidePatternProvider
validate
public void validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
throws javax.faces.validator.ValidatorException
- Specified by:
validate in interface javax.faces.validator.Validator
- Throws:
javax.faces.validator.ValidatorException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.