[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to