Class EqualValidator
java.lang.Object
com.webmethods.caf.faces.validator.BaseValidator
com.webmethods.caf.faces.validator.EqualValidator
- All Implemented Interfaces:
EventListener
,StateHolder
,Validator
@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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected String
static final String
The standard converter id for this converter.Fields inherited from class com.webmethods.caf.faces.validator.BaseValidator
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
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFor()
Deprecated.void
restoreState
(FacesContext context, Object state) saveState
(FacesContext context) void
setComponentId
(String string) void
Deprecated.usesetComponentId(String)
instead.void
validate
(FacesContext context, UIComponent component, Object value) Methods inherited from class com.webmethods.caf.faces.validator.BaseValidator
getClientLocale, getCustomErrorMsg, getRegionAsString, getshowCAFErrorMsg, isStringObj, isTransient, isValue, setCustomErrorMsg, setRegion, setshowCAFErrorMsg, setTransient
-
Field Details
-
VALIDATOR_ID
The standard converter id for this converter.
- See Also:
-
EQUAL_NOT_MESSAGE_ID
- See Also:
-
COMP_ERROR_MESSAGE_ID
- See Also:
-
m_sForeign
-
-
Constructor Details
-
EqualValidator
public EqualValidator()
-
-
Method Details
-
validate
public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException - Specified by:
validate
in interfaceValidator
- Overrides:
validate
in classBaseValidator
- Throws:
ValidatorException
-
saveState
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classBaseValidator
-
restoreState
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classBaseValidator
-
getFor
Deprecated.use#getOtherComponentId()
instead.- Returns:
- the foreign component_id, on which a value should be validated
-
setFor
Deprecated.usesetComponentId(String)
instead.- Parameters:
string
- the foreign component_id, on which a value should be validated
-
getComponentId
- Returns:
- the foreign component_id, on which a value should be validated
-
setComponentId
- Parameters:
string
- the foreign component_id, on which a value should be validated
-
getForClientId
-
#getOtherComponentId()
instead.