[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Where does the message (  age ) come from in  trunk/struts2examples/annotations/
From:       Yasser Zamani <yasser.zamani () live ! com>
Date:       2013-12-27 19:20:28
Message-ID: BLU0-SMTP18716C52A46E81BA0BE06D792CD0 () phx ! gbl
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic