// ------- render helpers -------
private void renderAllErrors(HtmlWriter w, ActionErrorProvider provider)
{
// Get errors
ErrorInfo lastActionError = provider.getLastActionError(true);
Map<String, ErrorInfo> fieldErrors = provider.getItemErrors();
boolean hasActionError = (lastActionError!=null && lastActionError.hasError());
boolean hasFieldErrors = (fieldErrors!=null && fieldErrors.size()>0);
// Check whether we have an error to render
if (hasActionError==false && hasFieldErrors==false)
{ // No Errors, nothing to render