Defining an adapter to find validation rules
You can define an adapter to find the validation rules that will be used to validate the parameter values.
This is an optional task. This adapter class must implement the ISCUIInputValidationAdapter interface, and must be registered with the application as a context parameter. For example:
<context-param>
<param-name>scui-param-value-validation-adapter</param-name>
<param-value>test.MyParamValueValidationAdapter</param-value>
</context-param>
You must implement the getValidationRules() method of the ISCUIInputValidationAdapter interface and pass the parameter name in the name argument.
When validating a parameter value, the system will call the registered adapter to find the rules against which the parameter value should be validated. The getValidationRules() method can either return all the rules registered for the passed parameter name, or have some logic to find other rules too. If no adapter is registered, the system will use all the rules registered for the given parameter name, along with the global rules or the default rules, to validate the parameter value.