You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Raphael Jean (JIRA)" <ta...@jakarta.apache.org> on 2005/08/05 14:47:35 UTC
[jira] Created: (TAPESTRY-533) Generated client-side javascript is wrong when error message or field display name contains single-quote characters or backslashes
Generated client-side javascript is wrong when error message or field display name contains single-quote characters or backslashes
----------------------------------------------------------------------------------------------------------------------------------
Key: TAPESTRY-533
URL: http://issues.apache.org/jira/browse/TAPESTRY-533
Project: Tapestry
Type: Bug
Components: Framework
Versions: 4.0
Environment: tapestry 4.0-beta-3
Reporter: Raphael Jean
Attachments: javascriptReservedCharacters.patch
The client javascript code generated by validators and translators is wrong when the error message, or the field display name, contains reserved javascript characters like single-quote and backslash.
For example:
document.$Form$0.events.addSubmitListener(function(event) { require(event, document.$Form$0.userName, 'Your must enter a value for User's name.'); });
The error message should instead read: 'Your must enter a value for user\'s name.'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Updated: (TAPESTRY-533) Generated client-side javascript is wrong when error message or field display name contains single-quote characters or backslashes
Posted by "Raphael Jean (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-533?page=all ]
Raphael Jean updated TAPESTRY-533:
----------------------------------
Attachment: javascriptReservedCharacters.patch
CVS diff patch that fixes the problem in RequirableFieldSupportImpl, NumberTranslator and all BaseValidator's.
Includes test patches to test the issue.
> Generated client-side javascript is wrong when error message or field display name contains single-quote characters or backslashes
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-533
> URL: http://issues.apache.org/jira/browse/TAPESTRY-533
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Environment: tapestry 4.0-beta-3
> Reporter: Raphael Jean
> Attachments: javascriptReservedCharacters.patch
>
> The client javascript code generated by validators and translators is wrong when the error message, or the field display name, contains reserved javascript characters like single-quote and backslash.
> For example:
> document.$Form$0.events.addSubmitListener(function(event) { require(event, document.$Form$0.userName, 'Your must enter a value for User's name.'); });
> The error message should instead read: 'Your must enter a value for user\'s name.'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org