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
                                                                                
  

Reply via email to