Hi Neil Use the AttributeModifier :
<div wicket:id="control" class="control-group error"> <input class="input-medium" placeholder="Firstname" type="text" wicket:id="person.firstName"> </div> WebMarkupContainer div = new WebMarkupContainer("control"); div.add( new AttributeModifier("class", new Model<String>("control-group")) ); add( div ) ; The css class will change François ----- François Meillet Formation Wicket - Développement Wicket -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modifying-components-parent-css-tp4659610p4659614.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org