You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wes Wannemacher (JIRA)" <ji...@apache.org> on 2009/04/17 08:13:06 UTC
[jira] Commented: (WW-2750) JavaScript errors due to hyphens in
action names
[ https://issues.apache.org/struts/browse/WW-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46031#action_46031 ]
Wes Wannemacher commented on WW-2750:
-------------------------------------
I think we might have already fixed this in the 2.1 series, can someone verify whether this is already fixed.
> JavaScript errors due to hyphens in action names
> ------------------------------------------------
>
> Key: WW-2750
> URL: https://issues.apache.org/struts/browse/WW-2750
> Project: Struts 2
> Issue Type: Improvement
> Affects Versions: 2.0.11.2
> Reporter: Miguel Diaz
> Priority: Minor
> Fix For: Future
>
>
> Action names may include some characters (such as hyphens) that cannot be part of a JavaScript variable name.
> In form related tags, the action name is used as a part of the generated HTML tag name and/or id.
> This causes invalid JavaScript when a HTML tag name/id is used as part of a JavaScript variable, such as in <s:doubleselect> generated JavaScript (an, I think, also in JavaScript validation code, but I'm not sure).
> A simple fix would be replacing all prohibited characters with underscores in the generated HTML tags names and ids.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.