org.apache.myfaces.custom.equalvalidator
Class EqualValidator
java.lang.Object
org.apache.myfaces.validator.ValidatorBase
org.apache.myfaces.custom.equalvalidator.AbstractEqualValidator
org.apache.myfaces.custom.equalvalidator.EqualValidator
- All Implemented Interfaces:
- EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator
public class EqualValidator
- extends AbstractEqualValidator
Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
Method Summary |
String |
getFor()
the id of the foreign component, which is needed for the validation
In JSF 2.0 facelets mode is used to identify the components this
validator should be applied to when using composite components. |
String |
getForId()
the id of the foreign component, which is needed for the validation |
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setFor(String forParam)
|
void |
setForId(String forId)
the id of the foreign component, which is needed for the validation |
Methods inherited from class org.apache.myfaces.validator.ValidatorBase |
getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStringValue, getSummaryMessage, getValueExpression, isTransient, restoreAttachedState, saveAttachedState, 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
- See Also:
- Constant Field Values
EqualValidator
public EqualValidator()
getFor
public String getFor()
- Description copied from class:
AbstractEqualValidator
- the id of the foreign component, which is needed for the validation
In JSF 2.0 facelets mode is used to identify the components this
validator should be applied to when using composite components.
Please use forId in that case instead.
- Specified by:
getFor
in class AbstractEqualValidator
- Returns:
- the foreign component_id, on which a value should be validated
setFor
public void setFor(String forParam)
- Specified by:
setFor
in class AbstractEqualValidator
- Parameters:
forParam
- the foreign component_id, on which a value should be validated
getForId
public String getForId()
- Description copied from class:
AbstractEqualValidator
- the id of the foreign component, which is needed for the validation
- Specified by:
getForId
in class AbstractEqualValidator
- Returns:
setForId
public void setForId(String forId)
- Description copied from class:
AbstractEqualValidator
- the id of the foreign component, which is needed for the validation
- Specified by:
setForId
in class AbstractEqualValidator
saveState
public Object saveState(javax.faces.context.FacesContext facesContext)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class ValidatorBase
restoreState
public void restoreState(javax.faces.context.FacesContext facesContext,
Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class ValidatorBase
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.