[ 
https://issues.apache.org/struts/browse/WW-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44222#action_44222
 ] 

Musachy Barroso commented on WW-2639:
-------------------------------------

I don't think this can be fixed at all. The key is specified in the jsp, when 
the request is submitted, struts had no way to map the field name(which was 
submitted and failed to be converted) to the key.

> field error displaying property name instead of i18n key
> --------------------------------------------------------
>
>                 Key: WW-2639
>                 URL: https://issues.apache.org/struts/browse/WW-2639
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: Web server :  Tomcat 5.5
> Struts version : 2.0.9
> Operating system :  win xp
>            Reporter: Ronak kamdar
>             Fix For: 2.1.3
>
>
> Hi,
> Currently I am facing an issue with the default field validation . 
> It displays the property name instead of picking up the i18n key associated 
> with it.
> The key is being picked up when displayingg label so i believe the resource 
> bundle is proeprly set.
> I have added the following enty in struts.xml
>     <constant name="struts.custom.i18n.resources" value="Global"/>
> and i have a properties file with name as Global.properties with one of the 
> entries as:
> intField1=Integer Field
> the field currently giving me problem is:
>  <s:textfield key="intField1" name="intField" maxLength="4" required="true"/>
> if i enter non numeric value in this field it displays the following error:
> Invalid field value for field "intField".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to