request.getSession(true).setAttribute(this.getErrorsAttributeName(request),
new ErrorsContainer(errors.toArray(new ObjectError[errors.size()])));
// Put new errors into HTML:
for (ObjectError error : errors) {
if (this.rendersError(error)) {
ElementMatcher matcher = this.getElementMatcherForError(error);
Component renderingComponent = this.errorRenderingCallback.getErrorComponent(event, error, this.messageSource, locale);
AppendContentAction appendAction = new AppendContentAction(matcher, renderingComponent);
response.addAction(appendAction);
// Get the actions to execute *after* rendering the component:
AjaxAction[] renderingActions = this.errorRenderingCallback.getErrorActions(event, error);