struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shuai (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-1858) combobox template is not correct when there is '.' in the name attribute
Date Tue, 27 Mar 2007 16:03:51 GMT
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


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


Mime
View raw message