Re: Adding attribute to body tag

2009-06-24 Thread Martin Funk
Am 24.06.2009 um 06:54 schrieb John: Hi, I need to add a class attribute to the body tag but this: component.add(new AttributeAppender(class, true, Model.of(yui- skin-sam), )); ... and this ... component.add(new BodyTagAttributeModifier(class, true, Model.of(yui-skin-sam),

Re: Adding attribute to body tag

2009-06-24 Thread John Patterson
Martin Funk-3 wrote: not to my knowledge it works in trunk just like that. I have trunk and still cannot add an attribute to the body tag. In my page constructor I have add(new BodyTagAttributeModifier(class, Model.of(johniscool), this)); but the attribute

Re: Adding attribute to body tag

2009-06-24 Thread John Patterson
I can see what I was doing wrong now. I simply needed to add a wicket:id attribute to the body and create a webmarkup container for the body tag. For some unknown reason I assumed the body tag was already attached to the Page. JD -- View this message in context: