You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the KiwiValidations#addError provide a way to specify a message template for custom validation error messages, add a note in the java docs regarding EL (expression language) usage in custom validators in Hibernate Validator 6.2.x and higher.
Specifically, the docs should note that by default, HV 6.2.x and higher disables EL for custom validators and thus the violation error messages will not execute the EL expressions, which (unless a custom validator explicitly enables EL) means the error messages will be the un-interpolated value. For example if the template is "'${validatedValue}' is not a valid ACME, Inc. product code. Try again.", then the returned error message will just be the template, i.e. in a web app that displays the violation messages a user sees: '${validatedValue}' is not a valid ACME, Inc. product code. Try again..
* Update javadocs for the addError methods in KiwiValidations
regarding Hibernate Validator 6.2+ disabling EL by default for
custom violations.
Closes#722
* Update javadocs for the addError methods in KiwiValidations
regarding Hibernate Validator 6.2+ disabling EL by default for
custom violations.
Closes#722
Since the
KiwiValidations#addError
provide a way to specify a message template for custom validation error messages, add a note in the java docs regarding EL (expression language) usage in custom validators in Hibernate Validator 6.2.x and higher.Specifically, the docs should note that by default, HV 6.2.x and higher disables EL for custom validators and thus the violation error messages will not execute the EL expressions, which (unless a custom validator explicitly enables EL) means the error messages will be the un-interpolated value. For example if the template is
"'${validatedValue}' is not a valid ACME, Inc. product code. Try again."
, then the returned error message will just be the template, i.e. in a web app that displays the violation messages a user sees:'${validatedValue}' is not a valid ACME, Inc. product code. Try again.
.See #690 for a complete description.
The text was updated successfully, but these errors were encountered: