It does. Here's a quick example, adapted from a quickstart: package com.mycompany;
import org.apache.wicket.AttributeModifier; import org.apache.wicket.request.mapper.parameter.PageParameters; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.model.Model; public class HomePage extends WebPage { private static final long serialVersionUID = 1L; public HomePage(final PageParameters parameters) { super(parameters); Label label = new Label("version", getApplication().getFrameworkSettings().getVersion()); label.add(new AttributeModifier("class", Model.of("ninja"))); add(label); } } <!DOCTYPE html> <html xmlns:wicket="http://wicket.apache.org"> <head> <meta charset="utf-8" /> <title>AttributeModifier Demo</title> <style type="text/css"> .ninja { display:none; } </style> </head> <body> <div id="hd"></div> <div id="bd"> <p> Do you see the following? -><wicket:container wicket:id="version">1.5-SNAPSHOT</wicket:container><- </p> </div> <div id="ft"></div> </body> </html> The resulting page will not show the version number and the html to go with it is this: <wicket:container wicket:id="version" class="ninja">6.10.0</wicket:container> Alasdair > But that route doesn't lead me to add the class attribute to the <label> tag, > right? If wrong, can you please > show me the corresponding markup? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org