wicket only supports dynamic injection into the <head> element which
is where all the scripts should go.

as far as your particular usecase you can simple put the script into
wicket:container tags instead of div tags, wicket:container tags
render into nothing.

-igor

On Fri, Nov 20, 2009 at 12:43 PM, Douglas Ferguson
<doug...@douglasferguson.us> wrote:
> Hey,
>
> I added a third party js to my "MainPage" class, which is the base class for 
> all my pages (header, footer, etc).
>
> This js has 2 sections. One goes to the top of the body tag and then the 
> other at the bottom of the <body> tag.
>
> Now the requirement has come that I need to add the js to only 1 page.
>
> If I just add it to the sub page, it won't actually be at the very top or 
> very bottom of the <body> tag.
>
> One way to do this is to put it in 2 divs (top and bottom) and show/hide 
> those divs based on the page that you are on.
>
> But I am worried that having it divs may not be a good thing.
>
> Is there a way that I could have it dynamically injected into the page?
>
>
> D/
>
>
> ---------------------------------------------------------------------
> 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

Reply via email to