as i understand it from the javadoc you only need a BodyTagAttributeModifier if you create a PANEL that has the desire to add something to the parent <body> tag. since you do not have a panel, but rather an ordinary page, you can simply assign a wicket:id to your body and alter the attribute as you whish, either as described by you or by using the more common AttributeModifier

in html: <body wicket:id="mybody">...

in code: new WebMarkupContainer("mybody").add(new AttributeModifier("class", true, new Model<String>("myclass"))); string could only be "automatically" cast to model because it does not implement the IModel interface.String is not aware that IModel even exists, like all other core java classes.

ok, so i did i would appreciate if someone can explain to me why the above code actually
works and the BodyTagAttributeModifier didn't. btw, i now knew that String
is not automatically cast to Model. my bad.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to