Re: Attaching Ajax Function to Java Method

2013-05-15 Thread Martin Grigorov
Hi, You can use TextTemplate to load the JavaScript with the placeholders. See https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/autocomplete-tagit-parent/autocomplete-tagit/src/main/java/org/wicketstuff/tagit/TagItAjaxBehavior.java#L96 for example. On Wed, May 15, 2013 at 5:19 AM,

Re: Attaching Ajax Function to Java Method

2013-05-15 Thread David Beer
Hi Bill I would also suggest you take a look at the Wicket-Bootstrap project by agilecoders for Bootstrap integration. Is very good and has a lot of the bootstrap components. http://wb.agilecoders.de/demo/ and https://github.com/l0rdn1kk0n/wicket-bootstrap/ Thanks David On 14/05/13

Re: Attaching Ajax Function to Java Method

2013-05-15 Thread William Speirs
On Wed, May 15, 2013 at 10:56 AM, David Beer david.m.b...@gmail.com wrote: Hi Bill I would also suggest you take a look at the Wicket-Bootstrap project by agilecoders for Bootstrap integration. Is very good and has a lot of the bootstrap components. http://wb.agilecoders.de/demo/ and

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread Bas Gooren
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. [1]

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread Don Ferguson
The following seems to work (using wicket 6.7 with the experimental bootstrap module). Basically, this ajax behavior is called on page load. At that point, it writes out the javascript to initialize the object with typeahead parameters. HTML: input wicket:id=typeahead type=text

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread William Speirs
@Bas Gooren that code you linked was very helpful. I have what I want up and working, but it's using a bunch of ugly jQuery ajax callbacks hacked into StringBuilders :-( @Don Ferguson I don't *think* this is what I'm looking for as I have thousands of options and I don't want them rendered at