One way of creating validation error messages, in this case from Input's minLength & maxLength ...
<Input
placeholder="Enter name"
valueStateText="Error Text."
value="{
path: '/firstName',
type: 'sap.ui.model.type.String',
constraints: {
minLength: 1,
maxLength: 10
}
}"
/>
..., is to register the control or view beforehand via MessageManager:
sap.ui.getCore().getMessageManager().registerObject(oView, true);
Is there a way of automatically generating constraint specific messages without using MessageManager?
If there isn't a way, how is it usually done? Are all views registered in the Component.js or each view's onInit has a MessageManager section as mentioned above?