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]