struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasser.zam...@live.com>
Subject Re: Where does the message ( age ) come from in trunk/struts2examples/annotations/
Date Fri, 27 Dec 2013 19:08:28 GMT
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


Mime
View raw message