You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by romanasu <da...@yahoo.com> on 2012/06/11 14:07:22 UTC

Re: Making Autocomplete Form Stateless

So, did somebody manage to do have an auto complete behavior into an
stateless wicket page? 
Maybe an integration of jquery ? Any examples, ideas?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Making-Autocomplete-Form-Stateless-tp4455817p4649849.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Making Autocomplete Form Stateless

Posted by "Serban.Balamaci" <th...@gmail.com>.
I think Martin was pretty explicit with the fact that you could use as
endpoint an AbstractResource or even a plain servlet as your data source
url, you don't need explicitly an ajax behaviour(although just setting the
stateless hint to true on the ajaxbehaviour might work without any
problems).

You can add
http://thewicketevangelist.blogspot.de/2011/12/marrying-wicket-and-jquery-ui.html
but any implementation would work, and use the url of your
mountResource(IResource) on where you return a JSON based on the query
parameters.
 
You don't even need to add the ajax behaviour to contribute the autocomplete
JS(which is a static string if the data url is not dynamic) to your panel so
your page is stateless. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Making-Autocomplete-Form-Stateless-tp4455817p4649853.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org