Re: [Wicket-user] [Wicket 1.1.1] Modifying attributes of the HTML body tag

2006-03-01 Thread Timo Stamm
Eelco Hillenius schrieb: And programatically you can do: /** * @see wicket.Component#renderHead(wicket.markup.html.internal.HtmlHeaderContainer) */ public void renderHead(HtmlHeaderContainer container) {

[Wicket-user] [Wicket 1.1.1] Modifying attributes of the HTML body tag

2006-02-28 Thread Timo Stamm
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

Re: [Wicket-user] [Wicket 1.1.1] Modifying attributes of the HTML body tag

2006-02-28 Thread Juergen Donnerstag
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()

Re: [Wicket-user] [Wicket 1.1.1] Modifying attributes of the HTML body tag

2006-02-28 Thread Eelco Hillenius
And programatically you can do: /** * @see wicket.Component#renderHead(wicket.markup.html.internal.HtmlHeaderContainer) */ public void renderHead(HtmlHeaderContainer container) { ((WebPage)getPage()).getBodyContainer().addOnLoadModifier(