struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stone.Hong (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-2222) The autocompleter bugs in struts2.0
Date Thu, 01 Nov 2007 06:32:40 GMT

     [ https://issues.apache.org/struts/browse/WW-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stone.Hong updated WW-2222:
---------------------------


Sorry, Now I find it is not a bug. 
we can use the attribute keyName to solve this requriment.

> The autocompleter bugs in struts2.0
> -----------------------------------
>
>                 Key: WW-2222
>                 URL: https://issues.apache.org/struts/browse/WW-2222
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.8
>         Environment: tomcat 5.5.23, JDK 1.5, IE 6.0
>            Reporter: Stone.Hong
>             Fix For: 2.1.2
>
>
> When I use autocompleter tags as following in struts page.
> <s:autocompleter cssStyle="width:220px" name="condition.receiverID" theme="xhtml"
autoComplete="false" searchType="substring"  list="receiverAccountMap" forceValidOption="true"></s:autocompleter>
> and put the ["account_001", "KFC Physical Account"],  ["account_002", "Coke Physical
Account"] ,["account_003", "JLF Physical Account"] to receiverAccountMap in action.
> then when I access the web page and view the autocompleter tag's source HTML, 
> <select dojoType="struts:ComboBox" style="width:220px" forceValidOption="true" searchType="SUBSTRING"
autoComplete="false" name="condition.receiverID" keyName="condition.receiverIDKey" >
>     <option value="account_001">KFC Physical Account</option>
>     <option value="account_002">Coke Physical Account</option>
>     <option value="account_003">JLF Physical Account</option>
> </select>
> it is ok in html page, but when I submit the form to web server, the field [condition.receiverID]
value in action is "KFC Physical Account", not "the account_001". 

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