Interface IValidatorControl

    • Method Detail

      • getScriptValidationFunctionName

        java.lang.String getScriptValidationFunctionName()
                                                  throws PortalException
        Returns the name of the client side validation function. e.g. return value: Validate_
        _
        Returns:
        the validation function name that was registered for this validator
        Throws:
        PortalException
      • getScriptValidate

        java.lang.String getScriptValidate()
                                    throws PortalException
        Returns the code that needs to be executed on the client side for this validation. Usually returns a call to the validation function name. e.g. return value: Validate_ _ ()
        Returns:
        a String.
        Throws:
        PortalException
      • getScriptValidationFunctionImplementation

        java.lang.String getScriptValidationFunctionImplementation()
                                                            throws PortalException
        Returns the client side code that must be placed in a client side function to perform the validation
        Returns:
        a String.
        Throws:
        PortalException
      • getScriptValidateRegistration

        java.lang.String getScriptValidateRegistration()
                                                throws PortalException
        Returns a script that must be placed on the page. This script contains function to perform client side validation. This method internally calls getScriptValidationFunctionImplementation() to get the code for validation.
        Returns:
        script that is used for performing client side validation.
        Throws:
        PortalException
      • getScriptClear

        java.lang.String getScriptClear()
                                 throws PortalException
        Clears the message displayed by this validator.
        Returns:
        a String.
        Throws:
        PortalException
      • getControlToValidateIds

        java.util.Collection<java.lang.String> getControlToValidateIds()
                                                                throws PortalException
        Returns a collection with the ids of the controls to be validated by this validator control.
        Returns:
        a collection with the controls ids.
        Throws:
        PortalException
      • isClientSideValidationEnabled

        boolean isClientSideValidationEnabled()
        Verify if the parameter ClienteSideValidation is enable.
        Returns:
        true if the ClienteSideValidation is enable and false otherwise.
      • getLocalizedErrorMessage

        java.lang.String getLocalizedErrorMessage()
                                           throws PortalException
        Returns the error message generated for the control. Null if no error message.
        Returns:
        the error message.
        Throws:
        PortalException
        Since:
        10.0.0