You have to add(require) javascript containing autocomplete plugin require.config({ shim: { "path/to/auto-complete": ["query"] } });
That may be part of jquery.ui.js which is included by Tapestry-jQuery. BTW there is an 5.4-alpha branch in tapestry-jquery but I am not sure about its status. regards Taha On 02-Aug-2013, at 12:24 PM, Alex Pasialis <apasia...@hotmail.com> wrote: > Hi, > > I have upgraded to Tapestry 5.4 and I have a problem extending the > Autocomplete mixin: > > in java: > void afterRender() { > javaScriptSupport_.require("bla") > .priority(InitializationPriority.LATE).with(getParameters()); > } > > in bla.js: > define([ "jquery"], function() { > return function(parameters) { > var field = jQuery("#" + parameters.fieldId); > field.autocomplete({ > select: function(e, ui) { > //do stuff > }, > > change: function(e, ui) { > //do stuff > } > }); > } > }); > > > > Before I was using the "Tapestry5-jQuery" library and it worked fine. But now > I am getting a "RequireJS error: require: field.autocomplete is not a > function". > I have tried a lot of combinations but still haven't figured it out. > > Any help would be appreciated. > > Thanks, > Alexis > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org