I hate the default type conversion error report message which is Invalid
field value for field {1}.
after I read the document,I find there is two ways  to override it:
1.define the generic i18n key xwork.default.invalid.fieldvalue in your
global i18n resource bundle.
2.adding an i18n key associated with just your action (Action.properties)
using the pattern invalid.fieldvalue.xxx, where xxx is the field name.
 The first method is a global method which is more easier,but in the
default text I can't use ognl because it's loaded by ResourceBundle
and  formated with field name.I thought the error message  only with field
name is not enough.I always define an i18n key using the pattern field name.
 I thought it would be more flexible the text of the
xwork.default.invalid.fieldvalue key loaded by an ognl expression.

Reply via email to