Class ErrorsProcessor

java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
org.broadleafcommerce.openadmin.processor.ErrorsProcessor
All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafAttributeModifierProcessor, org.broadleafcommerce.presentation.dialect.BroadleafProcessor

@Component("blErrorsProcessor") @ConditionalOnTemplating public class ErrorsProcessor extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • GENERAL_ERRORS_TAB_KEY

      public static final String GENERAL_ERRORS_TAB_KEY
      See Also:
    • GENERAL_ERROR_FIELD_KEY

      public static final String GENERAL_ERROR_FIELD_KEY
      See Also:
    • hideTopLevelFieldErrors

      @Value("${admin.form.validation.errors.hideTopLevelFieldErrors:false}") protected boolean hideTopLevelFieldErrors
  • Constructor Details

    • ErrorsProcessor

      public ErrorsProcessor()
  • Method Details

    • getName

      public String getName()
    • getPrefix

      public String getPrefix()
      Specified by:
      getPrefix in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
      Overrides:
      getPrefix in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
      Overrides:
      getPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
    • getModifiedAttributes

      public org.broadleafcommerce.presentation.model.BroadleafAttributeModifier getModifiedAttributes(String tagName, Map<String,String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
    • handleFieldErrors

      protected void handleFieldErrors(org.broadleafcommerce.presentation.model.BroadleafBindStatus bindStatus, Map<String,Map<String,List<String>>> result)
    • addFieldErrorForMainForm

      protected void addFieldErrorForMainForm(EntityForm form, org.springframework.validation.FieldError err, String errField, Map<String,List<String>> tabErrors)
    • addFieldErrorForDynamicForm

      protected void addFieldErrorForDynamicForm(EntityForm form, org.springframework.validation.FieldError err, Map<String,List<String>> tabErrors)
    • getTabName

      protected String getTabName(EntityForm form, String errField)
    • handleGlobalErrors

      protected void handleGlobalErrors(org.broadleafcommerce.presentation.model.BroadleafBindStatus bindStatus, Map<String,Map<String,List<String>>> result)
    • extractFieldName

      protected String extractFieldName(org.springframework.validation.FieldError err)
    • addFieldError

      protected void addFieldError(String fieldName, String message, Map<String,List<String>> tabErrors)