The 5.4-alpha branch of Tapestry5-jQuery is not ready yet. i worked on it a
lot few months ago, but still some modifications to do.
Manu


2013/8/2 Taha Hafeez Siddiqi <tawus.tapes...@gmail.com>

> 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
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey

Reply via email to