That works quite well, Martin.
I can add my on-the-fly contributions at the top of the head. I would
like to know how to pin-point the location better so my additions come
after the hard-coded HTML meta content-type and title elements. Is there
some documentation that might explain more about the whole process of
rendering the head?
Thanks,
Scott
On 7/18/2011 3:42 AM, Martin Grigorov wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]