@ClientSideValidator(function="CAF.Validator.equal", base="wm_cafshared", scripts=@ClientSideScript(resource="/dyn/j/ui/js/validators/standard/standard.js",library="validators/standard/standard")) public class EqualValidator extends BaseValidator
Modifier and Type | Field and Description |
---|---|
static String |
COMP_ERROR_MESSAGE_ID |
static String |
EQUAL_NOT_MESSAGE_ID |
protected String |
m_sForeign |
static String |
VALIDATOR_ID
The standard converter id for this converter.
|
BAD_PARAMETER_LONG_ID, BAD_PARAMETER_SHORT_ID, BAD_STRING_LONG_ID, BAD_STRING_SHORT_ID, BAD_TYPE_LONG_ID, BAD_TYPE_SHORT_ID, EMPTY_MESSAGE_ID, m_bShowCAFErrorMsg, m_bTransient, m_clientLocale, m_CustomMessage, MIN_MAX_MESSAGE_ID, NULL_PATTERN_MESSAGE_ID, OVER_MAX_MESSAGE_ID, UNDER_MIN_MESSAGE_ID
NOT_IN_RANGE_MESSAGE_ID
Constructor and Description |
---|
EqualValidator() |
Modifier and Type | Method and Description |
---|---|
String |
getComponentId() |
String |
getFor()
Deprecated.
use
#getOtherComponentId() instead. |
String |
getForClientId() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setComponentId(String string) |
void |
setFor(String string)
Deprecated.
use
setComponentId(String) instead. |
void |
validate(FacesContext context,
UIComponent component,
Object value) |
getClientLocale, getCustomErrorMsg, getRegionAsString, getshowCAFErrorMsg, isStringObj, isTransient, isValue, setCustomErrorMsg, setRegion, setshowCAFErrorMsg, setTransient
public static final String VALIDATOR_ID
The standard converter id for this converter.
public static final String EQUAL_NOT_MESSAGE_ID
public static final String COMP_ERROR_MESSAGE_ID
protected String m_sForeign
public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
validate
in interface Validator
validate
in class BaseValidator
ValidatorException
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class BaseValidator
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class BaseValidator
@Deprecated public String getFor()
#getOtherComponentId()
instead.@Deprecated public void setFor(String string)
setComponentId(String)
instead.string
- the foreign component_id, on which a value should be validatedpublic String getComponentId()
public void setComponentId(String string)
string
- the foreign component_id, on which a value should be validatedpublic String getForClientId()