What exactly is hardcoded ?
I'm not aware of such documentation but it sounds like a good todo for me.

On Mon, Jul 18, 2011 at 7:35 PM, Scott Reed <sr...@avacoda.com> wrote:
> 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<sr...@avacoda.com>  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<sr...@avacoda.com>    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: users-unsubscr...@wicket.apache.org
>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>>
>>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to