javax.faces.validator
Class LongRangeValidator
java.lang.Object
   javax.faces.validator.LongRangeValidator
javax.faces.validator.LongRangeValidator
- All Implemented Interfaces: 
- EventListener, StateHolder, Validator
- public class LongRangeValidator 
- extends Object- implements Validator, StateHolder
Creates a validator and associateds it with the nearest parent
 UIComponent.  When invoked, the validator ensures that values
 are valid longs that lie within the minimum and maximum values specified.
 
 Commonly associated with a h:inputText entity.
 
 Unless otherwise specified, all attributes accept static values or EL expressions.
 
 see Javadoc of JSF Specification
- Version:
- $Revision: 676278 $ $Date: 2008-07-13 03:35:04 -0500 (Sun, 13 Jul 2008) $
- Author:
- Manfred Geiler (latest modification by $Author: skitching $), Thomas Spiegl
 
 
 
 
 
MAXIMUM_MESSAGE_ID
public static final String MAXIMUM_MESSAGE_ID
- See Also:
- Constant Field Values
MINIMUM_MESSAGE_ID
public static final String MINIMUM_MESSAGE_ID
- See Also:
- Constant Field Values
TYPE_MESSAGE_ID
public static final String TYPE_MESSAGE_ID
- See Also:
- Constant Field Values
VALIDATOR_ID
public static final String VALIDATOR_ID
- See Also:
- Constant Field Values
LongRangeValidator
public LongRangeValidator()
LongRangeValidator
public LongRangeValidator(long maximum)
LongRangeValidator
public LongRangeValidator(long maximum,
                          long minimum)
validate
public void validate(FacesContext facesContext,
                     UIComponent uiComponent,
                     Object value)
              throws ValidatorException
- 
- Specified by:
- validatein interface- Validator
 
- 
- Throws:
- ValidatorException
 
getMaximum
public long getMaximum()
- The largest value that should be considered valid.
 
- 
 
- 
 
setMaximum
public void setMaximum(long maximum)
- 
 
- 
 
getMinimum
public long getMinimum()
- The smallest value that should be considered valid.
 
- 
 
- 
 
setMinimum
public void setMinimum(long minimum)
- 
 
- 
 
isTransient
public boolean isTransient()
- 
- Specified by:
- isTransientin interface- StateHolder
 
- 
 
setTransient
public void setTransient(boolean transientValue)
- 
- Specified by:
- setTransientin interface- StateHolder
 
- 
 
saveState
public Object saveState(FacesContext context)
- 
- Specified by:
- saveStatein interface- StateHolder
 
- 
 
restoreState
public void restoreState(FacesContext context,
                         Object state)
- 
- Specified by:
- restoreStatein interface- StateHolder
 
- 
 
equals
public boolean equals(Object o)
- 
- Overrides:
- equalsin class- Object
 
- 
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.