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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected booleanprotected static final org.apache.commons.logging.LogFields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddFieldErrorForDynamicForm(EntityForm form, org.springframework.validation.FieldError err, Map<String, List<String>> tabErrors) protected voidaddFieldErrorForMainForm(EntityForm form, org.springframework.validation.FieldError err, String errField, Map<String, List<String>> tabErrors) protected StringextractFieldName(org.springframework.validation.FieldError err) org.broadleafcommerce.presentation.model.BroadleafAttributeModifiergetModifiedAttributes(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) getName()intprotected StringgetTabName(EntityForm form, String errField) protected voidhandleFieldErrors(org.broadleafcommerce.presentation.model.BroadleafBindStatus bindStatus, Map<String, Map<String, List<String>>> result) protected voidhandleGlobalErrors(org.broadleafcommerce.presentation.model.BroadleafBindStatus bindStatus, Map<String, Map<String, List<String>>> result) Methods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
useSingleQuotes
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
GENERAL_ERRORS_TAB_KEY
- See Also:
-
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
-
getPrefix
- Specified by:
getPrefixin interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getPrefixin classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getPrecedencein classorg.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
-
getModifiedAttributes
-
handleFieldErrors
-
addFieldErrorForMainForm
-
addFieldErrorForDynamicForm
protected void addFieldErrorForDynamicForm(EntityForm form, org.springframework.validation.FieldError err, Map<String, List<String>> tabErrors) -
getTabName
-
handleGlobalErrors
-
extractFieldName
-
addFieldError
-