Re: Import Javascript through webjars as maven dependency.
aResponse.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("jquery.scroll*T*o/current/jquery.scroll *T*o.js"))); On Mon, Sep 9, 2019 at 2:06 PM Sibgha Nazir wrote: > Any idea, how to fix it? > > On Mon, Sep 9, 2019 at 10:01 AM Martin Grigorov > wrote: > > > Hi, > > > > I think the problem is in the packaging of this webjar. > > The folder name in the .jar file > > is: /META-INF/resources/webjars/jquery.scroll*T*o/ . Note the capiral T > in > > scrollTo. It does not match with the Maven artifact id - it uses lower > case > > 't'. > > Because of this WebjarsJavaScriptResourceReference cannot find it. > > > > On Sun, Sep 8, 2019 at 3:27 PM Sibgha Nazir wrote: > > > > > Hi, > > > > > > I am not able to import the following through webjar as maven > dependency > > in > > > my project. > > > > > > https://github.com/flesler/jquery.scrollTo > > > > > > I deployed it to the webjar using *bower install jquery.scrollTo* and > it > > is > > > also visible on the webjars.org > > > > > > > > > org.webjars.bowergithub.flesler > > > jquery.scrollto > > > 2.1.1 > > > > > > > > > Add it to the project like > > > > > > aResponse.render(JavaScriptHeaderItem.forReference(new > > > > > > > > > WebjarsJavaScriptResourceReference("jquery.scrollto/current/jquery.scrollto.js"))); > > > > > > > > > > > > The wicket shows the error > > > > > > > > > GET > > > > > > > > > http://localhost:8080/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/jquery.scrollto/null/jquery.scrollto.js > > > net::ERR_ABORTED 404 > > > > > > What could be the problem? > > > > > > Best Regards, > > > SIbgha > > > > > >
Re: Import Javascript through webjars as maven dependency.
Any idea, how to fix it? On Mon, Sep 9, 2019 at 10:01 AM Martin Grigorov wrote: > Hi, > > I think the problem is in the packaging of this webjar. > The folder name in the .jar file > is: /META-INF/resources/webjars/jquery.scroll*T*o/ . Note the capiral T in > scrollTo. It does not match with the Maven artifact id - it uses lower case > 't'. > Because of this WebjarsJavaScriptResourceReference cannot find it. > > On Sun, Sep 8, 2019 at 3:27 PM Sibgha Nazir wrote: > > > Hi, > > > > I am not able to import the following through webjar as maven dependency > in > > my project. > > > > https://github.com/flesler/jquery.scrollTo > > > > I deployed it to the webjar using *bower install jquery.scrollTo* and it > is > > also visible on the webjars.org > > > > > > org.webjars.bowergithub.flesler > > jquery.scrollto > > 2.1.1 > > > > > > Add it to the project like > > > > aResponse.render(JavaScriptHeaderItem.forReference(new > > > > > WebjarsJavaScriptResourceReference("jquery.scrollto/current/jquery.scrollto.js"))); > > > > > > > > The wicket shows the error > > > > > > GET > > > > > http://localhost:8080/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/jquery.scrollto/null/jquery.scrollto.js > > net::ERR_ABORTED 404 > > > > What could be the problem? > > > > Best Regards, > > SIbgha > > >
Re: Import Javascript through webjars as maven dependency.
Doesn't work with this solution as well. On Mon, Sep 9, 2019 at 6:59 AM Sven Meier wrote: > Hi, > > I don't know why, but WebJars doesn't seem to be able to determine the > 'current' version of your dependency. > > Try with "jquery.scrollto/2.1.1/jquery.scrollto.js" instead. > > Hope this helps > Sven > > Am 8. September 2019 14:27:34 MESZ schrieb Sibgha Nazir < > sibgha...@gmail.com>: > >Hi, > > > >I am not able to import the following through webjar as maven > >dependency in > >my project. > > > >https://github.com/flesler/jquery.scrollTo > > > >I deployed it to the webjar using *bower install jquery.scrollTo* and > >it is > >also visible on the webjars.org > > > > > >org.webjars.bowergithub.flesler > >jquery.scrollto > >2.1.1 > > > > > >Add it to the project like > > > >aResponse.render(JavaScriptHeaderItem.forReference(new > > >WebjarsJavaScriptResourceReference("jquery.scrollto/current/jquery.scrollto.js"))); > > > > > > > >The wicket shows the error > > > > > >GET > > > http://localhost:8080/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/jquery.scrollto/null/jquery.scrollto.js > >net::ERR_ABORTED 404 > > > >What could be the problem? > > > >Best Regards, > >SIbgha >
Re: Import Javascript through webjars as maven dependency.
Hi, I think the problem is in the packaging of this webjar. The folder name in the .jar file is: /META-INF/resources/webjars/jquery.scroll*T*o/ . Note the capiral T in scrollTo. It does not match with the Maven artifact id - it uses lower case 't'. Because of this WebjarsJavaScriptResourceReference cannot find it. On Sun, Sep 8, 2019 at 3:27 PM Sibgha Nazir wrote: > Hi, > > I am not able to import the following through webjar as maven dependency in > my project. > > https://github.com/flesler/jquery.scrollTo > > I deployed it to the webjar using *bower install jquery.scrollTo* and it is > also visible on the webjars.org > > > org.webjars.bowergithub.flesler > jquery.scrollto > 2.1.1 > > > Add it to the project like > > aResponse.render(JavaScriptHeaderItem.forReference(new > > WebjarsJavaScriptResourceReference("jquery.scrollto/current/jquery.scrollto.js"))); > > > > The wicket shows the error > > > GET > > http://localhost:8080/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/jquery.scrollto/null/jquery.scrollto.js > net::ERR_ABORTED 404 > > What could be the problem? > > Best Regards, > SIbgha >
Re: Import Javascript through webjars as maven dependency.
Hi, I don't know why, but WebJars doesn't seem to be able to determine the 'current' version of your dependency. Try with "jquery.scrollto/2.1.1/jquery.scrollto.js" instead. Hope this helps Sven Am 8. September 2019 14:27:34 MESZ schrieb Sibgha Nazir : >Hi, > >I am not able to import the following through webjar as maven >dependency in >my project. > >https://github.com/flesler/jquery.scrollTo > >I deployed it to the webjar using *bower install jquery.scrollTo* and >it is >also visible on the webjars.org > > >org.webjars.bowergithub.flesler >jquery.scrollto >2.1.1 > > >Add it to the project like > >aResponse.render(JavaScriptHeaderItem.forReference(new >WebjarsJavaScriptResourceReference("jquery.scrollto/current/jquery.scrollto.js"))); > > > >The wicket shows the error > > >GET >http://localhost:8080/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/jquery.scrollto/null/jquery.scrollto.js >net::ERR_ABORTED 404 > >What could be the problem? > >Best Regards, >SIbgha
Re: Import Javascript through webjars as maven dependency.
Hi, I don't know why, but WebJars doesn't seem to be able to determine the 'current' version of your dependency. Try with "jquery.scrollto/2.1.1/jquery.scrollto.js" instead. Hope this helps Sven Am 8. September 2019 14:27:34 MESZ schrieb Sibgha Nazir : >Hi, > >I am not able to import the following through webjar as maven >dependency in >my project. > >https://github.com/flesler/jquery.scrollTo > >I deployed it to the webjar using *bower install jquery.scrollTo* and >it is >also visible on the webjars.org > > >org.webjars.bowergithub.flesler >jquery.scrollto >2.1.1 > > >Add it to the project like > >aResponse.render(JavaScriptHeaderItem.forReference(new >WebjarsJavaScriptResourceReference("jquery.scrollto/current/jquery.scrollto.js"))); > > > >The wicket shows the error > > >GET >http://localhost:8080/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/jquery.scrollto/null/jquery.scrollto.js >net::ERR_ABORTED 404 > >What could be the problem? > >Best Regards, >SIbgha