{
// Force MessageBox to be re-rendered via PPR, since the set
// of messages may have changed.
RequestContext afContext = RequestContext.getCurrentInstance();
if (afContext != null)
afContext.addPartialTarget(component);
ResponseWriter writer = context.getResponseWriter();
// Check if INLINE validation mode is enabled
boolean inlineValidation =