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 2007/12/04 21:39:33 UTC

[jira] Updated: (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 updated WW-2351:
--------------------------------

    Attachment: struts2-WW-2351.patch

looking at UIBean in Struts2 and the trunk version for WebWork, it appears that the attached changes handle the issue mentioned in the original WebWork JIRA. The change is trivial. 

> 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
>            Priority: Minor
>         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.