[
https://issues.apache.org/struts/browse/WW-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Husted updated WW-1858:
---------------------------
Fix Version/s: 2.0.8
> combobox template is not correct when there is '.' in the name attribute
> ------------------------------------------------------------------------
>
> Key: WW-1858
> URL: https://issues.apache.org/struts/browse/WW-1858
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: 2.0.6
> Reporter: Zheng Shuai
> Fix For: 2.0.8
>
> Attachments: combobox.ftl
>
>
> <s:combobox
> label="My Favourite Color"
> name="person.myFavouriteColor"
> list="#{'red':'red','green':'green','blue':'blue'}"
> headerKey="-1"
> headerValue="--- Please Select ---"
> emptyOption="true"
> value="green" />
> Use the above code in the jsp page, the javascript does not work. Because in
> the simple/combobox.ftl, the name of javascript function is generated by the
> following line:
> function autoPopulate_${parameters.name?html}
> Then function name will be: autoPopulate_person.myFavouriteColor which is not
> a legal name
> solution: change function autoPopulate_${parameters.name?html} into function
> autoPopulate_${parameters.id?html}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.