Eelco Hillenius schrieb:
And programatically you can do:
/**
* @see
wicket.Component#renderHead(wicket.markup.html.internal.HtmlHeaderContainer)
*/
public void renderHead(HtmlHeaderContainer container)
{
Hi.
I have to modify the onload attribute of the body tag. I thought it
would be sufficient to add a new WebMarkupContainer in my base Page and
link it to the body tag in the markup.
But unfortunately it doesn't seem to be so easy. (I have to override the
add methods of Page, and Wicket
In 1.1.1 body has a special wicket container associated. I assume
you have Panel and that Panel has some wicket:head to contribute
something to the pages header. Than simply add a body onLoad=xxx to
your panel and your done.
wicket:head
javascript
/wicket:head
body onLoad=functionX()
And programatically you can do:
/**
* @see
wicket.Component#renderHead(wicket.markup.html.internal.HtmlHeaderContainer)
*/
public void renderHead(HtmlHeaderContainer container)
{
((WebPage)getPage()).getBodyContainer().addOnLoadModifier(