You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Andrei Hryshanovich (JIRA)" <ji...@apache.org> on 2008/12/09 10:36:36 UTC
[jira] Created: (WW-2912) Client-side validation displays property
key instead of value.
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.14, 2.0.11.2
Reporter: Andrei Hryshanovich
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.
[jira] Updated: (WW-2912) Client-side validation displays property
key instead of value.
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes updated WW-2912:
-----------------------------
Fix Version/s: 2.1.3
> 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.
[jira] Resolved: (WW-2912) Client-side validation displays property
key instead of value.
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (WW-2912) Client-side validation displays property
key instead of value.
Posted by "Andrei Hryshanovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Hryshanovich updated WW-2912:
------------------------------------
Attachment: jssnippet.txt
js validation code snippet.
> 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
> 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.
[jira] Updated: (WW-2912) Client-side validation displays property
key instead of value.
Posted by "Andrei Hryshanovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Hryshanovich updated WW-2912:
------------------------------------
Attachment: clientside.PNG
Message for js validation
> 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
> Attachments: clientside.PNG, 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.
[jira] Updated: (WW-2912) Client-side validation displays property
key instead of value.
Posted by "Andrei Hryshanovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Hryshanovich updated WW-2912:
------------------------------------
Attachment: serverside.PNG
Message for serverside validation
> 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
> Attachments: clientside.PNG, 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.