|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.doui.control.Control
lumis.doui.control.ValidatorControl
lumis.doui.control.validator.RequiredValueValidatorControl
public class RequiredValueValidatorControl
Generates client side and server side validation that verifies that a control has a value that is not null.
Example use:
Field Summary |
---|
Fields inherited from class lumis.doui.control.ValidatorControl |
---|
clientSideValidationEnabled, DEFAULT_VALUE, ERROR_TYPE_CONTROL_BEING_VALIDATED_IS_NOT_CLIENT_SIDE_READABLE, ERROR_TYPE_ERROR_VALIDATING_CONTROL, messages, SOURCE_FIELD_NAME_UNDEFINED, validateOnClientSideEvents |
Constructor Summary | |
---|---|
RequiredValueValidatorControl()
|
Method Summary | |
---|---|
boolean |
doServerValidation()
Performs the server validation of the controls for this validator. |
IResource |
getControlResource()
|
protected ValidationMessages |
getDefaultMessages(java.lang.String errorType)
|
java.lang.String |
getScriptValidationFunctionImplementation()
Returns the client side code that must be placed in a client side function to perform the validation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.doui.control.IControl |
---|
buildSubControls, createContainer, disconnect, getChildControls, getId, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes, setValid |
Constructor Detail |
---|
public RequiredValueValidatorControl()
Method Detail |
---|
public boolean doServerValidation() throws ControlException, PortalException
ValidatorControl
doServerValidation
in class ValidatorControl
ControlException
PortalException
ValidatorControl.serverValidate()
public java.lang.String getScriptValidationFunctionImplementation() throws ControlException, PortalException
IValidatorControl
PortalException
ControlException
protected ValidationMessages getDefaultMessages(java.lang.String errorType) throws ControlException, PortalException
getDefaultMessages
in class ValidatorControl
ControlException
PortalException
public IResource getControlResource() throws PortalException
getControlResource
in interface IControl
getControlResource
in class ValidatorControl
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |