You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris <ch...@yahoo.fr> on 2013/12/27 16:10:28 UTC
Where does the message ( age ) come from in trunk/struts2examples/annotations/
Hello,
Testing the Age (int age ) value with space or some letters, with
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/annotations/
I don't understand where the message " Invalid field value
for field 'personBean.age'." come from ( and the red color too)
From convention.plugin or anything else ?
Chris
Re: Where does the message ( age ) come from in trunk/struts2examples/annotations/
Posted by Yasser Zamani <ya...@live.com>.
Hi,
It has been done by
"/xwork-core/src/main/java/com/opensymphony/xwork2/conversion/impl/XWorkConverter.java"
inside Struts.
"By default, all conversion errors are reported using the generic i18n
key xwork.default.invalid.fieldvalue, which you can override (the
default text is Invalid field value for field "xxx", where xxx is the
field name) in your global i18n resource bundle."
Reference:
http://struts.apache.org/release/2.3.x/docs/type-conversion.html#TypeConversion-TypeConversionErrorHandling
On 12/27/2013 06:40 PM, Chris wrote:
> Hello,
>
> Testing the Age (int age ) value with space or some letters, with
> https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/annotations/
> I don't understand where the message " Invalid field value
> for field 'personBean.age'." come from ( and the red color too)
>
> From convention.plugin or anything else ?
>
> Chris
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Where does the message ( age ) come from in trunk/struts2examples/annotations/
Posted by Dave Newton <da...@gmail.com>.
Type conversion and validation interceptors, combined with the default
theme.
On Dec 27, 2013 9:11 AM, "Chris" <ch...@yahoo.fr> wrote:
> Hello,
>
> Testing the Age (int age ) value with space or some letters, with
>
> https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/annotations/
> I don't understand where the message " Invalid field value
> for field 'personBean.age'." come from ( and the red color too)
>
> From convention.plugin or anything else ?
>
> Chris