With org.apache.wicket.Application.setHeaderResponseDecorator(IHeaderResponseDecorator) you can setup custom org.apache.wicket.markup.html.IHeaderResponseDecorator. Wicket will call its org.apache.wicket.markup.html.IHeaderResponseDecorator.decorate(IHeaderResponse) when creating IHeaderResponse for each web response. Here you can re-order the header contributions as you wish.
See for example org.apache.wicket.resource.filtering.HeaderResponseContainerFilteringHeaderResponse and its specializations. On Fri, Jul 15, 2011 at 10:25 PM, Scott Reed <[email protected]> wrote: > Looking at that code some more I realize I have no idea what it's doing and > I'm finding the javadocs and comments pretty opaque. Is there anything you > can refer me to that will give me the background to understand this? I have > both Wicket in Action and the Cookbook. > > On 7/15/2011 2:07 PM, Martin Grigorov wrote: >> >> You'll need to setup custom response decorator. >> See http://www.wicket-library.com/wicket-examples/resourceaggregation >> >> On Fri, Jul 15, 2011 at 9:01 PM, Scott Reed<[email protected]> wrote: >>> >>> I am adding script and css references on the fly using >>> renderHead(IHeaderResponse). However this adds the head elements after >>> the >>> Wicket scripts and that interferes with how my scripts and css work. When >>> I >>> hardcode my elements before the Wicket elements everything works as we >>> need. >>> How can I add my head elements on the fly so they are located before the >>> Wicket elements? >>> Thanks, >>> Scott >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
