getRepeater().add(yuiPanel);
AjaxRequestTarget target = AjaxRequestTarget.get();
if (target != null) {
String createDiv = "(function(){var c=document.createElement('div');c.id='%s';Wicket.$('%s').appendChild(c)})();";
target.prependJavascript(String.format(createDiv, yuiPanel.getMarkupId(), getMarkupId()));
target.addComponent(yuiPanel);
// TODO: find out why javascript of yuiPanel's header contributor
// fails during the AJAX update in FireFox, works fine in IE.
}