Entity centre: crit-only SINGLE to support custom requiredness messages
Closed this issue · 0 comments
Description
Crit-only SINGLE properties support validation (#979). Issue #1761 introduced support for setting customer requiredness messages MetaProperty.setRequired(final boolean required, final String errorMsg)
. However, if requiredness is changed dynamically for a crit-only property, a custom message is not propagated and the default error message is displayed instead.
-
1. Adjust the current behaviour to correctly propagate dynamic custom requiredness messages in application to crit-only properties, which are assigned via a corresponding meta-property.
-
2. Ensure that custom requiredness messages at the level crit-only property definition, specified as part of
@Required
, get propagated correctly and can be overridden withMetaProperty.setRequried(true, <dynamic custom message>)
.
Expected outcome
Ability to apply custom requiredness validation message for crit-only SINGLE properties.