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