Hi,
That's described in the migration document here:
[quote]
Replacement for getBodyContainer
If you had code like this:
public void renderHead(HtmlHeaderContainer container) {
((WebPage) getPage()).getBodyContainer().addOnLoadModifier("foo();", null);
super.renderHead(container);
}
you should instead let your component implement IHeaderContributor,
and then in the interface method, do:
public void renderHead(IHeaderResponse response) {
response.renderOnLoadJavascript("foo();");
}
[/quote]
Eelco
On Mon, May 12, 2008 at 2:03 PM, TheMayor <[EMAIL PROTECTED]> wrote:
>
> Hi Guys,
>
> Since getBodyContainer is no longer available as of wicket 1.3.x, how can
> you allow inherited page markup to update or contribute to the body tag's
> attributes (other than onLoad and onUnload). We used to rely on
> getBodyContainer().getBodyContainer().
>
> Thanks for the help
>
> -hc
> --
> View this message in context:
> http://www.nabble.com/getBodyContainer-replacement-for-appending-attributes-to-body-tag-tp17189983p17189983.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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]