body-tag onLoad/onScroll

2010-06-22 Thread Dr. Wolf Blecher
Hi all, I have the following situation: I want to add a java script function call to the body tag which get's as parameter the id of a wicket panel: body onload=javascript: initPosition('sidebarRightSelection65'); onscroll=javascript: sideBarRightPos('sidebarRightSelection65'); So I tried the

Re: body-tag onLoad/onScroll

2010-06-22 Thread Martin Grigorov
Make body a regular Wicket component: body wicket:id=theBody Then in .java: WebMarkupContainer body = new WebMarkupContainer(theBody); body.add(new (Simple)AttributeModifier()) afair body is no more special element. On Tue, 2010-06-22 at 09:51 +0200, Dr. Wolf Blecher wrote: Hi all, I

Re: body-tag onLoad/onScroll

2010-06-22 Thread Jeremy Thomerson
And in that webmarkupcontainer, override istransparentresolverand return true. That will allow you to add components directly to the page without having to add them all to the body's web markup container. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors