Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-24 Thread Al Maw
Edvin Syse wrote: Johan Compagner skrev: BodyOnLoadContainer is dropped because you shouldn't try to generate body onload=xxx What you should do is have a header contributor and add call IHeaderResponse.renderOnLoadJavascript(String javascript); OK. Maybe one of you guys could remove the

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 04:24:21PM +0100, Edvin Syse wrote: The body tag from your subpage is discarded. The body tag that is rendered comes from some parent page. One way to do this would be to attach a WebMarkupContainer to the body tag in the parent page and expose it via a getter: I

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Edvin Syse
The body tag from your subpage is discarded. The body tag that is rendered comes from some parent page. One way to do this would be to attach a WebMarkupContainer to the body tag in the parent page and expose it via a getter: I really want to avoid this, as it seems messy having to add all

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Edvin Syse
How about org.apache.wicket.markup.html.body.BodyTagAttributeModifier? hth, Gerolf Already tried it, the name sounds right, but it seems to be a helper for Panels in some way, I don't fully understand the javadoc: org.apache.wicket.markup.html.body.BodyTagAttributeModifier

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Edvin Syse
Johan Compagner skrev: BodyOnLoadContainer is dropped because you shouldn't try to generate body onload=xxx What you should do is have a header contributor and add call IHeaderResponse.renderOnLoadJavascript(String javascript); OK. Maybe one of you guys could remove the reference from the

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Gerolf Seitz
How about org.apache.wicket.markup.html.body.BodyTagAttributeModifier? hth, Gerolf On Nov 23, 2007 7:05 PM, Edvin Syse [EMAIL PROTECTED] wrote: John Krasnay skrev: On Fri, Nov 23, 2007 at 05:05:51PM +0100, Edvin Syse wrote: John Krasnay wrote: Perhaps there's another way to solve

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Edvin Syse
John Krasnay wrote: On Fri, Nov 23, 2007 at 04:24:21PM +0100, Edvin Syse wrote: The body tag from your subpage is discarded. The body tag that is rendered comes from some parent page. One way to do this would be to attach a WebMarkupContainer to the body tag in the parent page and expose it

How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Edvin Syse
Hi, I have a page that extends another page, and concequently the parent page template contains the body element that is beeing rendered. The subpage template contains: body wicket:extend content... /wicket:extend /body In some pages I would like to add

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 02:17:28PM +0100, Edvin Syse wrote: Hi, I have a page that extends another page, and concequently the parent page template contains the body element that is beeing rendered. The subpage template contains: body wicket:extend content...

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Edvin Syse
John Krasnay skrev: On Fri, Nov 23, 2007 at 05:05:51PM +0100, Edvin Syse wrote: John Krasnay wrote: Perhaps there's another way to solve your problem. Why are you modifying the class of body? To change it's styling? Why not instead split your styles into different stylesheets and

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Edvin Syse
Al Maw wrote: I really want to avoid this, as it seems messy having to add all components to the body markupcontainer. I can't believe this is the Wicket way to solve this problem :) See MarkupContainer#isTransparentResolver(). Sweet! Thank you, that made by day :) It seems Wicket has

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-23 Thread Johan Compagner
BodyOnLoadContainer is dropped because you shouldn't try to generate body onload=xxx What you should do is have a header contributor and add call IHeaderResponse.renderOnLoadJavascript(String javascript); johan On Nov 23, 2007 10:09 PM, Edvin Syse [EMAIL PROTECTED] wrote: Al Maw wrote: