Interesting.. Is wicket:container the same as using wicket:enclosure with an child?
D/ On Nov 20, 2009, at 3:39 PM, Igor Vaynberg wrote: > 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 > <[email protected]> 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: [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]
