[ https://issues.apache.org/struts/browse/WW-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2912. --------------------------------- Resolution: Fixed This is working in showcase: http://localhost:8080/struts2-showcase/validation/clientSideValidationExample.action The validation file that uses the resources is here: apps\showcase\src\main\resources\org\apache\struts2\showcase\validation\FieldValidatorsExampleAction-submitClientSideValidationExample-validation.xml Maybe you didn't define the key in any resource file, or the resource files are not on the right place. Feel free to re-open if you have a test case the reproduces the problem. > Client-side validation displays property key instead of value. > -------------------------------------------------------------- > > Key: WW-2912 > URL: https://issues.apache.org/struts/browse/WW-2912 > Project: Struts 2 > Issue Type: Bug > Components: Other > Affects Versions: 2.0.11.2, 2.0.14 > Reporter: Andrei Hryshanovich > Fix For: 2.1.3 > > Attachments: clientside.PNG, jssnippet.txt, serverside.PNG > > > if validation xml uses message key: > <field name="password"> > <field-validator type="requiredstring"> > <param name="trim">true</param> > <message key="password.required"/> > </field-validator> > </field> > from property file: > password.required=password is required > and client-side validation is enabled: > <s:form action="doLogin" method="POST" theme="css_xhtml" validate="true"> > then property key "password.required" is displayed instead of it value > "password is required" when validation fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.