[ https://issues.apache.org/struts/browse/WW-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zheng Shuai updated WW-1858: ---------------------------- Attachment: combobox.ftl > 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 > Attachments: combobox.ftl > > > 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.