Of course, it all becomes a lot easier when I realise that I'm not restricted to a single <SCRIPT> block...
/Gwyn On 04/08/05, Matej Knopp <[EMAIL PROTECTED]> wrote: > It is possible, I've done it once :) > But the entire script has to be a label body. > > <script wicket:id="myScript" type="text/javascript"> > </script> > > ..... > > Label script; > script = new Label("..."); > script.setEscapeModelStrings(false); > add(script); > > > -Matej > > Gwyn Evans wrote: > > Thanks, I'll have a look at (b). > > > > The problem I have with (a) is that most of the script is static and > > thus I have a <script lang...><!-- --> block but if I try to place a > > label in there, it won't get parsed as it's effectively commented out. > > > > Maybe I can get something sorted with panels... > > > > /Gwyn > > > > On 04/08/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > > >>you've several options. > >> > >>a) create a simple Label like component which you attach to e.g. > >><script>. And the Label model is what you dynamically want to add. Of > >>course these approach works with all components, as wicket does not > >>distinguish between head and body. However, without the wicket:tags > >>removed, your output will most likely not be (x)html compliant. > >> > >>b) assuming you have panel component and there is specific <head> part > >>for this component and you want it to be automatically inserted into > >>the (page's) output, than have a look at > >>test/src/wicket/markup/parser/filter/*.* which contains the test cases > >>for HeaderComponents. Btw. <body onLoad=""> support is included as > >>well. > >> > >>Juergen > >> > >>On 8/4/05, Gwyn Evans <[EMAIL PROTECTED]> wrote: > >> > >>>Any suggestions for how this might best be done. > >>> > >>>I'd like to be able to produce a few lines of dynamically generated > >>>script (text) in the header block as the page is rendered but it's not > >>>clear how best to go about this? > >>> > >>>/Gwyn > >>> > >>> > >>>------------------------------------------------------- > >>>SF.Net email is Sponsored by the Better Software Conference & EXPO > >>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > >>>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > >>>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > >>>_______________________________________________ > >>>Wicket-user mailing list > >>>Wicket-user@lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > >> > >> > >>------------------------------------------------------- > >>SF.Net email is Sponsored by the Better Software Conference & EXPO > >>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > >>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > >>_______________________________________________ > >>Wicket-user mailing list > >>Wicket-user@lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user