Interface IValidatorControl

    • Method Detail

      • getScriptValidationFunctionName

        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

        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

        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

        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
      • getControlToValidateIds

        Collection<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

        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