Select2's wicket integration should provide you with some pointers [1].

It basically points down to implementing a listener interface, and providing the url to it to your javascript code. You can then return your data when the listener interface's method is called.


Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 14-5-2013 22:36, schreef William Speirs:
I'm trying to create a typeahead component for Wicket that uses Bootstrap's

To set this up though I need to provide the .typeahead method in JavaScript
with a function that will return the results, given the query. What I'd
like to do is attach that JavaScript function to a Java method much like
what is done with an AjaxEventBehavior [2]. I cannot figure out how to go
about setting all of this up... any ideas?




Reply via email to