You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ronak kamdar (JIRA)" <ji...@apache.org> on 2008/05/22 11:26:06 UTC
[jira] Updated: (WW-2639) field error displaying property name
instead of i18n key
[ https://issues.apache.org/struts/browse/WW-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronak kamdar updated WW-2639:
-----------------------------
Priority: Major (was: Trivial)
> 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
>
> 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.