ExtValContext.getContext().addValidationExceptionInterceptor(new BeanValidationExceptionInterceptor());
}
protected void registerViolationSeverityPayload()
{
ExtValContext extValContext = ExtValContext.getContext();
extValContext.addGlobalProperty(ViolationSeverity.Info.class.getName(), ViolationSeverity.Info.class, false);
extValContext.addGlobalProperty(ViolationSeverity.Warn.class.getName(), ViolationSeverity.Warn.class, false);
extValContext.addGlobalProperty(ViolationSeverity.Fatal.class.getName(), ViolationSeverity.Fatal.class, false);
//no need to register "error" it's the default
}