We use @Constraint.Required to validate the fields of our forms, and this generates a ValidationError - which is all well and nice. This error has a standard error message (error.required) which is associated with the following string: "This field is required".
However, we want to have control over this string and (possibly) override it - how can we do this? We have a message file in our conf/-folder which has the following line:
error.required = dummytext
But the error message still reads "this field is required" - even though the messages-file is being read (we did some tests).
How can we override these messages?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…