Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
More specifically I have: s:head theme=ajax / chengas123 wrote: Yep, I do. Roberto Nunnari wrote: Do you have the s:head tag? It won't work without that. -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11764525

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
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

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

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread Musachy Barroso
://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

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
I could see that being an issue. d. It would appear it works in 2.0.7 (which is why I upgraded to the latest: 2.0.8): http://www.nabble.com/s.autocompleter-with-JSON-Plugin-tf3418364.html#a9529727 -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11768451 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
action: action name=AutocompleteField class=com.sherwin.whitePages.action.AutocompleteField result type=json json /result /action -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11770551

[S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
-- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11752774 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread Roberto Nunnari
Do you have the s:head 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: s:url id=jsonList

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
Yep, I do. Roberto Nunnari wrote: Do you have the s:head 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 at Nabble.com

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

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 autocompleter

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/ @ s.submit value=Cancel