o.a.w.Component and Behavior classes have method #renderHead(IHeaderResponse)
with IHeaderResponse#renderXyz methods you can contribute JS, CSS and plain text to the page. It is up to you how you'll generate the constribution. In TagIt component I used TextTemplate to prepare the template and populate it but you can use anything, even FreeMarker to do that. in wicket-velocity module we do the same with Velocity. Additionally when you use Wicket Ajax functionality you can use AjaxRequestTarget.(pre|ap)pendJavaScript() methods to contribute JS respectively before and after the replacement of the components' markup. On Sun, Dec 4, 2011 at 11:04 AM, Andrei Voden <are...@gmail.com> wrote: > Thank you for your input. Really helping me to grasp it. > Question on #4 in Cons: what I ment is to generate templated content > outside of the tags. Like for example I have: > <script> > .....templated code..... > </script> > Is that doable? Sorry if that sounds newbeesh. > > Andrei -- 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