code: @Override
  	public void renderHead(IHeaderResponse response) {
  		super.renderHead(response);
  		
  		List<FeedbackMessage> msgs = model.getObject();
  		if(msgs.size()>0){
  			for(Component component: messages.keySet()){
  				StringBuffer sb = new StringBuffer();
  				for(FeedbackMessage msg : messages.get(component)){
  					sb.append(msg.getMessage()+"\n");
  					msg.markRendered();
  				}
  				
  				String script = "$(\"#"+component.getMarkupId()+"\")"
  						+ ".popover({ 'trigger': 'focus', "
  								   + "'placement': 'top', "
  								   + "'content': \""+StringEscapeUtils.escapeEcmaScript(sb.toString())+"\", "
  								   + "'template': '<div class=\"popover feedback-popover\"><div class=\"arrow\"></div><div class=\"popover-inner\"><h3 class=\"popover-title\"></h3><div class=\"popover-content\"><p></p></div></div></div>'"
  						+ "});";
  				script += "$(\"#"+component.getMarkupId()+"\").keypress(function(){ $(\"#"+this.getMarkupId()+"\").removeClass('has-error'); $(this).popover('destroy'); });";
  				response.render(OnDomReadyHeaderItem.forScript(script));
  			}
  		}
  		
  	}
docs: /* (non-Javadoc)
  @see org.apache.wicket.Component#renderHead(org.apache.wicket.markup.head.IHeaderResponse)