struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Dewan" <dew...@gmail.com>
Subject s.autocompleter with JSON Plugin
Date Sat, 17 Mar 2007 08:17:47 GMT
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.

Has anyone had success using the JSON plugin with the autocompleter?

Regards,
Rohit

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message