You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Max Yuean (JIRA)" <ji...@apache.org> on 2007/07/24 04:48:05 UTC

[jira] Created: (WW-2055) template.simple.doubleselect.ftl cause Javascript error when the name attribute of is setted to "xxxx.xx"

template.simple.doubleselect.ftl cause Javascript error when the name attribute of <s;doubleselect /> is setted to "xxxx.xx"
----------------------------------------------------------------------------------------------------------------------------

                 Key: WW-2055
                 URL: https://issues.apache.org/struts/browse/WW-2055
             Project: Struts 2
          Issue Type: Bug
          Components: Views
    Affects Versions: 2.0.8
            Reporter: Max Yuean
            Assignee: Musachy Barroso


--------------------------------------------------------------------------------------------------------------------------------------------------
var ${parameters.id}Temp = document.${parameters.formName}.${parameters.doubleName};
--------------------------------------------------------------------------------------------------------------------------------------------------

The code above can causes Javascript error when ${parameters.doubleName} is "xxx.xxx", I think it should be coded like this:

--------------------------------------------------------------------------------------------------------------------------------------------------
var ${parameters.id}Temp = document.${parameters.formName}.elements["${parameters.doubleName}"];
--------------------------------------------------------------------------------------------------------------------------------------------------


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WW-2055) template.simple.doubleselect.ftl causes Javascript error when the name attribute of is setted to "xxxx.xx"

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

James Holmes closed WW-2055.
----------------------------

    Resolution: Duplicate

This issue was fixed via JIRA ticket WW-1618 and should no longer be an issue as of Struts 2.0.9. If after upgrading to Struts 2.0.9 you still have problems with this, please re-open WW-1618 with specific details of the problem you're having.

> template.simple.doubleselect.ftl causes Javascript error when the name attribute of <s:doubleselect /> is setted to "xxxx.xx"
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2055
>                 URL: https://issues.apache.org/struts/browse/WW-2055
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>            Reporter: Max Yuean
>            Assignee: Musachy Barroso
>
> --------------------------------------------------------------------------------------------------------------------------------------------------
> var ${parameters.id}Temp = document.${parameters.formName}.${parameters.doubleName};
> --------------------------------------------------------------------------------------------------------------------------------------------------
> The code above causes Javascript error when ${parameters.doubleName} is "xxx.xxx", I think it should be coded like this:
> --------------------------------------------------------------------------------------------------------------------------------------------------
> var ${parameters.id}Temp = document.${parameters.formName}.elements["${parameters.doubleName}"];
> --------------------------------------------------------------------------------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2055) template.simple.doubleselect.ftl causes Javascript error when the name attribute of is setted to "xxxx.xx"

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

Max Yuean updated WW-2055:
--------------------------

    Summary: template.simple.doubleselect.ftl causes Javascript error when the name attribute of <s:doubleselect /> is setted to "xxxx.xx"  (was: template.simple.doubleselect.ftl cause Javascript error when the name attribute of <s;doubleselect /> is setted to "xxxx.xx")

> template.simple.doubleselect.ftl causes Javascript error when the name attribute of <s:doubleselect /> is setted to "xxxx.xx"
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2055
>                 URL: https://issues.apache.org/struts/browse/WW-2055
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>            Reporter: Max Yuean
>            Assignee: Musachy Barroso
>
> --------------------------------------------------------------------------------------------------------------------------------------------------
> var ${parameters.id}Temp = document.${parameters.formName}.${parameters.doubleName};
> --------------------------------------------------------------------------------------------------------------------------------------------------
> The code above can causes Javascript error when ${parameters.doubleName} is "xxx.xxx", I think it should be coded like this:
> --------------------------------------------------------------------------------------------------------------------------------------------------
> var ${parameters.id}Temp = document.${parameters.formName}.elements["${parameters.doubleName}"];
> --------------------------------------------------------------------------------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2055) template.simple.doubleselect.ftl causes Javascript error when the name attribute of is setted to "xxxx.xx"

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

Max Yuean updated WW-2055:
--------------------------

    Description: 
--------------------------------------------------------------------------------------------------------------------------------------------------
var ${parameters.id}Temp = document.${parameters.formName}.${parameters.doubleName};
--------------------------------------------------------------------------------------------------------------------------------------------------

The code above causes Javascript error when ${parameters.doubleName} is "xxx.xxx", I think it should be coded like this:

--------------------------------------------------------------------------------------------------------------------------------------------------
var ${parameters.id}Temp = document.${parameters.formName}.elements["${parameters.doubleName}"];
--------------------------------------------------------------------------------------------------------------------------------------------------


  was:
--------------------------------------------------------------------------------------------------------------------------------------------------
var ${parameters.id}Temp = document.${parameters.formName}.${parameters.doubleName};
--------------------------------------------------------------------------------------------------------------------------------------------------

The code above can causes Javascript error when ${parameters.doubleName} is "xxx.xxx", I think it should be coded like this:

--------------------------------------------------------------------------------------------------------------------------------------------------
var ${parameters.id}Temp = document.${parameters.formName}.elements["${parameters.doubleName}"];
--------------------------------------------------------------------------------------------------------------------------------------------------



> template.simple.doubleselect.ftl causes Javascript error when the name attribute of <s:doubleselect /> is setted to "xxxx.xx"
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2055
>                 URL: https://issues.apache.org/struts/browse/WW-2055
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>            Reporter: Max Yuean
>            Assignee: Musachy Barroso
>
> --------------------------------------------------------------------------------------------------------------------------------------------------
> var ${parameters.id}Temp = document.${parameters.formName}.${parameters.doubleName};
> --------------------------------------------------------------------------------------------------------------------------------------------------
> The code above causes Javascript error when ${parameters.doubleName} is "xxx.xxx", I think it should be coded like this:
> --------------------------------------------------------------------------------------------------------------------------------------------------
> var ${parameters.id}Temp = document.${parameters.formName}.elements["${parameters.doubleName}"];
> --------------------------------------------------------------------------------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.