|
||||||||||
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
lumis.doui.control.validator.RequiredValueWhenVisibleValidatorControl
public class RequiredValueWhenVisibleValidatorControl
This is a client side only validating control. If the controle is visible do the required value validation, else do not validate.
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 | |
---|---|
RequiredValueWhenVisibleValidatorControl()
|
Method Summary | |
---|---|
boolean |
doServerValidation()
Does not perform validation on the server side. |
java.lang.String |
getScriptValidationFunctionImplementation()
The script validation client side function calls the method LumisIsControlVisible passing the id of the control that is being validated. |
protected void |
includeScripts()
Includes LumisDouiRequiredValueWhenVisibleValidator.js script which implements the LumisIsControlVisible(controlElement) client side function that returns true or false depending on the visibility of the given validated control. |
Methods inherited from class lumis.doui.control.validator.RequiredValueValidatorControl |
---|
getControlResource, getDefaultMessages |
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 RequiredValueWhenVisibleValidatorControl()
Method Detail |
---|
public boolean doServerValidation() throws ControlException, PortalException
doServerValidation
in class RequiredValueValidatorControl
ControlException
PortalException
ValidatorControl.serverValidate()
protected void includeScripts() throws ControlException, PortalException
includeScripts
in class ValidatorControl
ControlException
PortalException
public java.lang.String getScriptValidationFunctionImplementation() throws ControlException, PortalException
getScriptValidationFunctionImplementation
in interface IValidatorControl
getScriptValidationFunctionImplementation
in class RequiredValueValidatorControl
PortalException
ControlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |