Hello and pardon my noobishness, but:
What is the most elegent way be to translate the field name also when validating?
if I have a field called "username" that can't be null then I can probably have a
Code:
validator.notNull=Can't be null. Nope.
and probably a
Code:
validator.notnull={propertyName} can't be null. Nope.
which would result in "username can't be null. Nope."
But how can you make a "second pass" through a resource bundle to translate the field name? Something like
Code:
validator.notnull=#{messages['{propertyName}']} can't be null. Nope.