Hi Marty, Since you are using wiQuery, this should be taken care of for you, (wiQuery makes sure that the core jQuery js file is first). I would guess that you are contributing the javascript file in the normal wicket way (adding header contributor or adding it directly to the html file) and not with the wiQuery contribute method.
With wiQuery you should add all your references in the contribute method defined by IWiQueryPlugin (the interface you should implement if you component is a wiQuery component) eg: public void contribute(WiQueryResourceManager wiQueryResourceManager) { wiQueryResourceManager.addJavaScriptResource(new JavascriptResourceReference(MyClass.class, "myFile.js")); } -- Regards - Richard Wilkinson Developer, jWeekend: OO & Java Technologies - Development and Training http://jWeekend.com On 19 March 2010 17:08, Martin Phee <mp...@objectivearts.com> wrote: > I there a way I can add a js file and make sure it's after others? > > I'm using wiQuery and want to add the block ui, but when I add the js file > it's the first one so it's throwing an error when it tries to init since > jquery core is after it. > > Is there something I can do with the wiQuery extension to make it also load > the ui.block (without changing code). > > Thanks, > > Marty > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >