@Component(value="blErrorsProcessor")
@ConditionalOnTemplating
public class ErrorsProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierAttrProcessor
EntityForm organized by tab, according to the expression passed
in as an argument.
For instance, if you would like to get all of the errors for the EntityForm, invoke this processor with an
attribute that looks like:
blc_admin:errors="*{*}"| Modifier and Type | Field and Description |
|---|---|
static String |
GENERAL_ERROR_FIELD_KEY |
static String |
GENERAL_ERRORS_TAB_KEY |
protected boolean |
hideTopLevelFieldErrors |
protected static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
ErrorsProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFieldError(String fieldName,
String message,
Map<String,List<String>> tabErrors) |
String |
getName() |
int |
getPrecedence() |
String |
getPrefix() |
Map<String,Object> |
populateModelVariables(String tagName,
Map<String,String> tagAttributes,
String attributeName,
String attributeValue,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected static final org.apache.commons.logging.Log LOG
public static final String GENERAL_ERRORS_TAB_KEY
public static final String GENERAL_ERROR_FIELD_KEY
@Value(value="${admin.form.validation.errors.hideTopLevelFieldErrors:false}")
protected boolean hideTopLevelFieldErrors
public String getName()
public String getPrefix()
getPrefix in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrefix in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierAttrProcessorpublic int getPrecedence()
getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafVariableModifierAttrProcessorpublic Map<String,Object> populateModelVariables(String tagName, Map<String,String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Copyright © 2021. All rights reserved.