Customizing error messages

You can customize the error message which is displayed in case of input validation error.

You can customize the display of error messages in one of the following ways:

  1. Display a detailed error message which includes the following description in the user interface:
    • The field which failed input validation
    • The regular expression used for validation
    • The exact input which failed validation
  2. Display a plain error message indicating input validation failure in the user interface.
Note: The plat_bundle.js file, which is located at <INSTALL_DIR>/repository/eardata/platform_uifwk/30/war/platform/scripts directory contains the error_input_does_not_conform_pattern and error_input_matches_not_allowed_pattern bundle entries. To customize the error message, the values in these bundle entries have to be overridden with the appropriate customized error message.

You can customize the display of error message by using scui-detailed-validation-exception-message context parameter as follows:

<context-param>
<param-name>scui-detailed-validation-exception-message </param-name>
<param-value>TRUE</param-value>
</context-param>
<context-param>
<param-name>scui-global-validation-exception-handler-path </param-name>
<param-value>>/appcommon/core/jsps/datavalidationerror.jsp</param-value>
</context-param>
Note:
  • If the context-parameter scui-detailed-validation-exception-message is set to TRUE, a detailed error message is displayed in the user interface. Else, a plain text error message is displayed. Default value of the context-parameter is set to TRUE.
  • scui-global-validation-exception-handler-path is the context-parameter set for the error-jsp for the input validation. Default value is set to /appcommon/core/jsps/datavalidationerror.jsp