Thanks for the reply. My code is slightly different; I am already using Objects, so the proposed solution doesn't apply to me. Here is what I am doing:
in the validator:
Code:
String identifier = "12345678-G";
String name = "moo";
errors.reject("error.checkdigits.unallowed", new Object[]{identifier, moo}, "The identifier is not supported by the validation scheme");
in messages.properties:
Code:
error.checkdigits.unallowed=The identifier {0} is not allowed for validator {1}
output upon error:
Code:
The identifier {0} is not allowed for validator {1}
For whatever reason, {0} and {1} aren't being replaced by "12345678-G" and "moo".