struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-2639) field error displaying property name instead of i18n key
Date Sat, 21 Jun 2008 01:05:05 GMT

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

Dave Newton commented on WW-2639:
---------------------------------

Another option is to build new error messages that with ${getText(fieldName)} in them; I've
done this for nested field names where the "key" tag attribute defines the form element label.

> 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.


Mime
View raw message