Is it better to use AbstractBehavior and override onComponentTag? I assume that the AttributeModifier is only for cases when the attribute already exists in the markup, correct?
-----Original Message----- From: Al Maw [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 07, 2007 7:48 PM To: users@wicket.apache.org Subject: Re: Rendering a fieldset class attribute William Hoover wrote: > > final AttributeModifier levelModifier = new > AttributeModifier("class", > new Model() { > @Override > public Object getObject() { > return "fieldset-class"; > } > }); [...] > The fieldset is not rendering the css class attribute? This is because you need to provide a second constructor parameter of true (read the javadoc for AttributeModifier). Regards, Al --------------------------------------------------------------------- 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]