public void testValidateWithErrorsPart2() throws Exception {
AjaxResponse response = null;
String rendering = null;
DefaultValidationHandler handler = new DefaultValidationHandler();
handler.setMessageSource(new DelegatingMessageSource());
handler.setErrorRenderingCallback(new DefaultErrorRenderingCallback() {
public Component getErrorComponent(AjaxSubmitEvent event, ObjectError error, MessageSource messageSource, Locale locale) {
return new TaggedText(messageSource.getMessage(error.getCode(), null, error.getDefaultMessage() + " for event : " + event.getEventId(), locale), TaggedText.Tag.SPAN);
}
});