Tnx! Igor, it works!

Jurjan



igor.vaynberg wrote:
> 
> hava you tried this?
> 
> <body wicket:id="foo">...
> 
> 
> add(new webmarkupcontainer("body") { boolean istransparentresolver() {
> return true; } oncomponenttag(tag) { tag.put("class","green"); });
> 
> -igor
> 
> 
> On 10/31/07, Jurjan <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm trying to dynamically change the CSS class of the body tag depending
>> on
>> the context.
>>
>>       ....
>>       <body class="detailpage theme01">
>>       ....
>>
>>
>> In my page class I'm using the BodyTagAttributeModifier to implement this
>> behavior, but this is not currect. Obviously I'm mising something, but
>> what?
>>
>>
>>        final Theme theme = outing.getMainTheme();
>>
>>        add(new BodyTagAttributeModifier("class", true, new
>> AbstractReadOnlyModel(){
>>
>>            @Override
>>            public Object getObject() {
>>                return theme.getDisplaystyle();
>>            }
>>        }, this));
>>
>> Thanks in advance, Jurjan
>> --
>> View this message in context:
>> http://www.nabble.com/Dynamically-Change-css-style-of-body-tag-tf4723877.html#a13505908
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-Change-css-style-of-body-tag-tf4723877.html#a13516764
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to