<sas:MaximumLengthValidator>

Generates a validator that validates the maximum length of the input.

Syntax

<sas:MaximumLengthValidator
   [clearErrorsFunctionName="java.lang.String"]
   [errorHandlerFunctionName="java.lang.String"]
   [errorMessage="java.lang.String"]
   [id="value"]
   [instantiate="true|false"]
   [maxLength="int"]
   [ref="java.lang.String"]
   [scope="page|request|session|application"]
   [validationFunctionName="java.lang.String"] />

Attributes

clearErrorsFunctionNameThe clear errors function name
errorHandlerFunctionNameThe error handler function name
errorMessageThe validation error message
idCase-sensitive name used to identify the object instance.
instantiateFlag that, if true, indicates that a new instance of the underlying class should be loaded if one cannot be found in PageContext. Must be used with an id attribute.
maxLengththe maximum length to use.
refThe variable String value that represents an object created earlier in the same scope.
scopeThe scope (or page context) within which the reference is available.
validationFunctionNameThe JavaScript validation function name

More Information

To view the documentation for the related TransformationBean, see com.sas.servlet.tbeans.util.validators.MaximumLengthValidator.

If you need to subclass the tag handler class for the sas:MaximumLengthValidator tag, extend com.sas.taglib.servlet.tbeans.util.validators.MaximumLengthValidatorTag.