org.broadleafcommerce.openadmin.web.processor
Class ErrorsProcessor

java.lang.Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.broadleafcommerce.openadmin.web.processor.ErrorsProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

@Component(value="blErrorsProcessor")
public class ErrorsProcessor
extends org.thymeleaf.processor.attr.AbstractAttrProcessor

Processor that returns all the errors within an 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="*{*}"

Author:
Phillip Verheyden (phillipuniverse)

Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
ErrorsProcessor()
           
 
Method Summary
 int getPrecedence()
           
protected  org.thymeleaf.processor.ProcessorResult processAttribute(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
           
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

ErrorsProcessor

public ErrorsProcessor()
Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor

processAttribute

protected org.thymeleaf.processor.ProcessorResult processAttribute(org.thymeleaf.Arguments arguments,
                                                                   org.thymeleaf.dom.Element element,
                                                                   String attributeName)
Specified by:
processAttribute in class org.thymeleaf.processor.attr.AbstractAttrProcessor


Copyright © 2013. All Rights Reserved.