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 2008/02/10 22:18:39 UTC
[jira] Resolved: (WW-2351) customOnSubmit_parameters.id() function
name cause problem when parameters.id contains forbidden characters
(webwork issue ww-1453)
[ https://issues.apache.org/struts/browse/WW-2351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher resolved WW-2351.
---------------------------------
Resolution: Fixed
patch applied, checked showcase and all appeared to be working.
> customOnSubmit_parameters.id() function name cause problem when parameters.id contains forbidden characters (webwork issue ww-1453)
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: WW-2351
> URL: https://issues.apache.org/struts/browse/WW-2351
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.1.x
> Reporter: Wes Wannemacher
> Assignee: Wes Wannemacher
> Priority: Minor
> Fix For: 2.1.1
>
> Attachments: struts2-WW-2351.patch
>
>
> copied from - http://jira.opensymphony.com/browse/WW-1453
> When form "id" attribute contains forbidden characters, generated JS function name is invalid. The JS specification allows only a-zA-Z0-9_ characters (verified with Rhino JS engine)
> In template files "form.ftl" and "form-close.flt" all non-word characters must be replaced/removed e.g:
> ${parameters.id?replace('\\W', '_', 'r')}
> This issue is related to http://jira.opensymphony.com/browse/WW-1440.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.