Just making the example more clear: add(new WebMarkupContainer("bodyId") { @Override public boolean isTransparentResolver() { return true; } @Override protected void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); tag.put("id", "someId"); } } });
<html><body wicket:id="bodyId">...</body></html> results in <html><body wicket:id="bodyId" id="someId">...</body></html> igor.vaynberg wrote: > > add(new webmarkupcontainer("body") { istransparentresolver() { return > true; } oncomponenttag(tag) { tag.put("id",foo); }}); > > <html><body wicket:id="body">...</body></html> > > -igor > > > > -- View this message in context: http://old.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p27324093.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