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:37:33 UTC

[jira] Created: (WW-2351) customOnSubmit_parameters.id() function name cause problem when parameters.id contains forbidden characters (webwork issue ww-1453)

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


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.


[jira] Resolved: (WW-2351) customOnSubmit_parameters.id() function name cause problem when parameters.id contains forbidden characters (webwork issue ww-1453)

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (WW-2351) customOnSubmit_parameters.id() function name cause problem when parameters.id contains forbidden characters (webwork issue ww-1453)

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Assigned: (WW-2351) customOnSubmit_parameters.id() function name cause problem when parameters.id contains forbidden characters (webwork issue ww-1453)

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes Wannemacher reassigned WW-2351:
-----------------------------------

    Assignee: Wes Wannemacher

> 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.