[
https://issues.apache.org/jira/browse/WW-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart closed WW-2750.
-----------------------------
Resolution: Fixed
Fix Version/s: (was: Future)
2.3.1
The patch was applied as marked in WW-3047
> JavaScript errors due to hyphens in action names
> ------------------------------------------------
>
> Key: WW-2750
> URL: https://issues.apache.org/jira/browse/WW-2750
> Project: Struts 2
> Issue Type: Improvement
> Affects Versions: 2.0.11.2
> Reporter: Miguel Diaz
> Priority: Minor
> Fix For: 2.3.1
>
> Attachments:
> fix-doubleselect-for-ids-containing-non-id-chars-v2.patch,
> fix-doubleselect-for-ids-containing-non-id-chars.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira