Re: Render script tag for jQuery before all other Javscript statements in the header?
On Fri, February 22, 2013, Martin Grigorov wrote: Read http://wicketinaction.com/2012/07/wicket-6-resource-management/ Thanks, did so. I modified my code according to the example found here: http://www.wicket-library.com/wicket-examples-6.0.x/resourceaggregation/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?1SourcesPage_class=org.apache.wicket.examples.resourcedecoration.HomePagesource=HomePage.java My code now runs into an exception at rendering with this message: | Last cause: No FilteringHeaderResponse is present in the request | cycle. This may mean that you have not decorated the header | response with a FilteringHeaderResponse. Simply calling the | FilteringHeaderResponse constructor sets itself on the request | cycle WicketMessage: Exception in rendering component: | [HeaderResponseContainer [Component id = foo]] I could not find a hint on FilteringHeaderResponse and how I need to instanciate it, neither any example code was using it. From debugging my code I see that the exception occurs before my 'renderHead' is called, i.e. obviously instanciating FilteringHeaderResponse should have happened somewhere before. Is there any sample code available where I can see how to do this properly? Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= manche meinen, lechts und rinks kann man nicht velwechsern. werch ein illtum! -- elnst jandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Render script tag for jQuery before all other Javscript statements in the header?
On Fri, Feb 22, 2013 at 2:43 PM, Martin Dietze d...@fh-wedel.de wrote: On Fri, February 22, 2013, Martin Grigorov wrote: Read http://wicketinaction.com/2012/07/wicket-6-resource-management/ At the bottom of the article there is a link to a demo application. See https://github.com/martin-g/blogs/blob/master/wicket6-resource-management/src/main/java/com/wicketinaction/ResourceManagementApplication.java#L100 But much simpler will be to use PriorityHeaderItem as explained in the article. Thanks, did so. I modified my code according to the example found here: http://www.wicket-library.com/wicket-examples-6.0.x/resourceaggregation/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?1SourcesPage_class=org.apache.wicket.examples.resourcedecoration.HomePagesource=HomePage.java My code now runs into an exception at rendering with this message: | Last cause: No FilteringHeaderResponse is present in the request | cycle. This may mean that you have not decorated the header | response with a FilteringHeaderResponse. Simply calling the | FilteringHeaderResponse constructor sets itself on the request | cycle WicketMessage: Exception in rendering component: | [HeaderResponseContainer [Component id = foo]] I could not find a hint on FilteringHeaderResponse and how I need to instanciate it, neither any example code was using it. From debugging my code I see that the exception occurs before my 'renderHead' is called, i.e. obviously instanciating FilteringHeaderResponse should have happened somewhere before. Is there any sample code available where I can see how to do this properly? Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= manche meinen, lechts und rinks kann man nicht velwechsern. werch ein illtum! -- elnst jandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Render script tag for jQuery before all other Javscript statements in the header?
On Fri, February 22, 2013, Martin Grigorov wrote: At the bottom of the article there is a link to a demo application. See https://github.com/martin-g/blogs/blob/master/wicket6-resource-management/src/main/java/com/wicketinaction/ResourceManagementApplication.java#L100 But much simpler will be to use PriorityHeaderItem as explained in the article. Thank you, I did not expect it to be that simple :) Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Hier ich bin, steine Dich wie ein Wirbelwind. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org