@Component(value="blErrorsProcessor") @ConditionalOnTemplating public class ErrorsProcessor extends Object implements ErrorsExpression
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 |
|---|---|
protected boolean |
hideTopLevelFieldErrors |
protected static org.apache.commons.logging.Log |
LOG |
GENERAL_ERROR_FIELD_KEY, GENERAL_ERRORS_TAB_KEY| 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
@Value(value="${admin.form.validation.errors.hideTopLevelFieldErrors:false}")
protected boolean hideTopLevelFieldErrors
public String getName()
getName in interface ErrorsExpressionpublic String getPrefix()
getPrefix in interface ErrorsExpressionpublic int getPrecedence()
getPrecedence in interface ErrorsExpressionpublic Map<String,Object> populateModelVariables(String tagName, Map<String,String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
populateModelVariables in interface ErrorsExpressionCopyright © 2023. All rights reserved.