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
Priority: Trivial
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.