Hi Mark,
You can use Hibernate Validator's ValueFormatterMessageInterpolator:
Code:
Configuration<?> configuration = Validation.byDefaultProvider().configure();
ValidatorFactory factory = configuration
.messageInterpolator(new ValueFormatterMessageInterpolator(configuration.getDefaultMessageInterpolator()))
.buildValidatorFactory();
Validator validator = factory.getValidator();
This interpolator allows to displa the validated value within messages using the expression ${validatedValue}. You can learn more in the reference guide:
http://docs.jboss.org/hibernate/validator/4.2/reference/en-US/html/validator-bootstrapping.html#section-message-interpolator
--Gunnar