The autocompleter is expecting the "datasource" to be an array, not a map(or object), so in this case it should be:
{"foos": [ ["1", "chance"], ["10", "test"] ] } Although it would be convenient if it would take a map also: https://issues.apache.org/struts/browse/WW-1872 musachy On 4/5/07, Rohit Dewan <[EMAIL PROTECTED]> wrote:
I have the following in the body: <@s.url id="foos" value="foosList.action" /> <@s.form theme="ajax" action="addTest" method="add"> <@ s.autocompleterModel theme="ajax" href="%{foos}" name="foo" /> <@s.submit value="OK" action="addTest" method="add"/> <@ s.submit value="Cancel" action="addTest" method="cancel"/> </@s.form> I have verified that foosList.action returns the following {"foos":{1:"chance",10:"test"}} However, the autocompleter is blank after load. I am using Struts 2.0.7 and JSON Plugin 0.7 Any thoughts? Thanks, Rohit
-- "Hey you! Would you help me to carry the stone?" Pink Floyd