You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2007/05/17 23:07:43 UTC
[jira] Assigned: (WW-1858) combobox template is not correct when
there is '.' in the name attribute
[ https://issues.apache.org/struts/browse/WW-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso reassigned WW-1858:
-----------------------------------
Assignee: Musachy Barroso
> 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
> Assigned To: Musachy Barroso
> 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.