Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
n, which was the name of the Map in my action: json -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11770551 Sent from the Struts - User ma

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
xecute() throws Exception { PersonDAO dao = new PersonDAO(); if(!isEmpty(city)) { json = dao.getCities(city); } return SUCCESS; } -- View this message in context: http://www.nabble.com/-S2--Autocompleter

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
xt: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11767651 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread Musachy Barroso
se" > autoComplete="true" searchType="startstring" /> > > If I visit AutocompleteField.action?city=cle I get the following: > > {"json":["CLEARFIELD","CLEARWATER","CLEBURNE","CLEMMONS","CLERMONT&qu

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread Dave Newton
--- chengas123 <[EMAIL PROTECTED]> wrote: > Is my JSON not formatted properly? http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-autocompleterTag Has the Ajax tag been updated to use JSON from the JSON result type? If so, the docs should be changed, otherwise I could see that being an is

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
ot;,"CLEMMONS","CLERMONT","CLEVELAND"]} > > Thanks, > Ben > http://www.benmccann.com benmccann.com > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11766335 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
More specifically I have: chengas123 wrote: > > Yep, I do. > > > Roberto Nunnari wrote: >> >> Do you have the tag? It won't work without that. >> > > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-p

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
Yep, I do. Roberto Nunnari wrote: > > Do you have the tag? It won't work without that. > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11754924 Sent from the Struts - User mailing list archive

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread Roberto Nunnari
Do you have the tag? It won't work without that. chengas123 wrote: Hi, I'm having trouble getting the autocompleter working. When I type in the box, nothing happens. I am using Struts 2.0.8 with JSON plugin 0.15. The relevant lines from my JSP are: autoComplete="true" searchType="st

[S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
t;:["CLEARFIELD","CLEARWATER","CLEBURNE","CLEMMONS","CLERMONT","CLEVELAND"]} Thanks, Ben http://www.benmccann.com benmccann.com -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.ht

Re: autocompleter with JSON plugin

2007-04-06 Thread Rohit Dewan
Hi Musachy, That was it. It works now! Especially given that the autocompleter is structured as a key value pair, supporting maps would be a natural fit. Thanks for creating the enhancement request on JIRA. Regards, Rohit On 4/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: The autocomplete

Re: autocompleter with JSON plugin

2007-04-06 Thread Musachy Barroso
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

autocompleter with JSON plugin

2007-04-05 Thread Rohit Dewan
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"/>