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
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
--- 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
://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
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
://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]
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
--
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
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
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
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
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
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
13 matches
Mail list logo