I've created a custom Constraint and want the resulting error message (as it appears in a TitledPageApplicationDialog) to be looked up via the standard internationalization message API (aka, I'll put the actual text in my messages.properties file). I did the "let's try this and see if it works" things and had the toString() method on my Constraint implementation return this:
I then placed this in my messages.properties:Code:public String toString() { return "constraint.myconstraint.name"; }
No dice - "constraint.myconstraint.name" was output rather than "my constraint message". I started to delve into the whole validation error message code, but realized it is quite involved and thought I'd ask here first. How should I go about internationalizing my constraint violation message?Code:constraint.myconstraint.name=my constraint message
Thanks,
Andy


Reply With Quote