If I attempt to use an empty message node in my visitor validator
configuration, I get a NullPointerException from
TextParseUtil.translateVariables (line 155) because "expression" (the
default message if message key is null) is null.
I can sort of work around the issue by adding a default message, but
then that string is prepending (according to guide and as witnessed) to
the validation error string. I do not want this string appended.
Does anyone have any suggestions?
<field name="userBean">
<field-validator type="visitor">
<message key=" "></message>
</field-validator>
</field>
BTW, other forms such as "<message key=""></message>", "<message/>", and
"<message></message>" all produce the same problem.
Thanks,
Derrick