If you're rendering JS that shouldn't be executed until the page is loaded,
call this method in your renderHead method:

http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/IHeaderResponse.html#renderOnDomReadyJavascript%28java.lang.String%29

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Feb 16, 2010 at 8:12 AM, exceptionist <[email protected]> wrote:

>
>
>
> igor.vaynberg wrote:
> >
> > allow your component to implement IHeaderContributor and output both
> > your base js and string js from the renderhread() method
> > -igor
> >
>
> du u have a code-example(link oder something like that) for this way of
> solving my prob?
> i tried several times to do it, but i always got the same result...
> the script, which was generated dynamically was rendered into the head
> before the ressource-implementation, instead of behind that block of code.
> --
> View this message in context:
> http://old.nabble.com/wicket-and-javascript-tp27590908p27608918.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to