org.apache.myfaces.custom.equalvalidator
Class EqualValidator
java.lang.Object
org.apache.myfaces.custom.equalvalidator.EqualValidator
- StateHolder, Validator
public class EqualValidator
extends java.lang.Object
implements Validator, StateHolder
$Revision: 178130 $ $Date: 2005-05-24 09:24:46 +0200 (Tue, 24 May 2005) $- mwessendorf (latest modification by $Author: mmarinschek $)
static String | EQUAL_MESSAGE_ID - The message identifier of the
FacesMessage to be created if
the equal_for check fails.
|
static String | VALIDATOR_ID - The standard converter id for this converter.
|
EQUAL_MESSAGE_ID
public static final String EQUAL_MESSAGE_ID
The message identifier of the FacesMessage
to be created if
the equal_for check fails.
VALIDATOR_ID
public static final String VALIDATOR_ID
The standard converter id for this converter.
EqualValidator
public EqualValidator()
getFor
public String getFor()
- the foreign component_id, on which a value should be validated
isTransient
public boolean isTransient()
restoreState
public void restoreState(FacesContext context,
Object state)
saveState
public Object saveState(FacesContext context)
setFor
public void setFor(String string)
string
- the foreign component_id, on which a value should be validated
setTransient
public void setTransient(boolean newTransientValue)
validate
public void validate(FacesContext facesContext,
UIComponent uiComponent,
Object value)
throws ValidatorException