I just tried to add your code in my code:

WebMarkupContainer mydiv = new WebMarkupContainer("MyDiv");
mydiv.add(new AttributeModifier("class", true, "the-class-name"));
add(mydiv);

but it won't compile because the "the-class-name" parameter cannot be a
string.

I checked the doc and saw that it should be an IModel. This interface is
implemented by many classes.

Which one should I use?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-about-embedded-labels-tp2307332p2307380.html
Sent from the Wicket - User 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

Reply via email to