Eelco Hillenius schrieb:
And programatically you can do:

        /**
         * @see 
wicket.Component#renderHead(wicket.markup.html.internal.HtmlHeaderContainer)
         */
        public void renderHead(HtmlHeaderContainer container)
        {
                ((WebPage)getPage()).getBodyContainer().addOnLoadModifier(
                                "init" + javaScriptComponentName + "();");
                super.renderHead(container);
        }

Use with care though.


Thanks Eelco, this seems to be what I am looking for.

Thanks to you too, Juergen. I knew about the header contribution of Panels, but I need this functionality from a WebMarkupContainer and it has to be dynamic.


Timo


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to