never mind... my mistake i needed to use AbstractBehavior (below). Sorry for
the post :)
fieldset.add(new AbstractBehavior() {
@Override
public void onComponentTag(Component component,
ComponentTag tag) {
tag.put("class", "fieldset-class");
}
});
-----Original Message-----
From: William Hoover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 07, 2007 6:26 PM
To: [email protected]
Subject: Rendering a fieldset class attribute
Is it appropriate to have the following...
final WebMarkupContainerWithAssociatedMarkup fieldset = new
WebMarkupContainerWithAssociatedMarkup(
"fieldset");
final AttributeModifier levelModifier = new
AttributeModifier("class",
new Model() {
@Override
public Object getObject() {
return "fieldset-class";
}
});
fieldset.add(levelModifier);
add(fieldset);
with...
<fieldset wicket:id="fieldset">
...
</fieldset>
The fieldset is not rendering the css class attribute?
---------------------------------------------------------------------
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]