allow your component to implement IHeaderContributor and output both
your base js and string js from the renderhread() method

-igor

2010/2/15 björn liffers <[email protected]>:
> hello,
> i tried to generate a.js-file, but i wasn´t able to generate it in the folder 
> where i wanted it to be.
> so i decided to generate it from a StringModel but it still didn´t work.
>
> i have several scripts that are implemented via resource...
> like this one:
>     add(JavascriptPackageResource.getHeaderContribution(Start.class, 
> "js/raphael-min.js"));
>
> the StringModel was added after the script-ressource
>     add(JavascriptPackageResource.getHeaderContribution(Start.class, 
> "js/raphael-min.js"));
>     add(new Label("rScript", Model.of(rScript)).setEscapeModelStrings(false));
>
> but when the page rendered the StringModel was implemented before the 
> ressources where added.
>
> i dislike to place the StringModel´s script-tag in the body-tag instead of 
> the head-tag of my html-file
> is there any possibility to solve that?
> if it´s not possible to do it this way, is there anyone who can tell me how 
> to get the absolute path to my Start.class dynamically?
> would be glad to get answers to both questions :)
>
> in my company there isn´t anyone dealing with wicket, it´s some kind of 
> explorative task for me
>
> thank you
> *exceptionist*
>
> Immer auf dem Laufenden! Sport, Auto, Reise, Politik und Promis. Von uns für 
> Sie: der neue Arcor.de-Newsletter!
> Jetzt anmelden und einfach alles wissen: 
> http://www.arcor.de/rd/footer.newsletter
>
> ---------------------------------------------------------------------
> 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]

Reply via email to