org.thymeleaf.spring3.processor.attr
Class SpringErrorsAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.thymeleaf.spring3.processor.attr.SpringErrorsAttrProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

public final class SpringErrorsAttrProcessor
extends org.thymeleaf.processor.attr.AbstractAttrProcessor

Works in a similar way to #fields.errors(), but lists all errors for the given field name, separated by a <br/>

Since:
1.0
Author:
Daniel Fernández

Field Summary
static String ATTR_NAME
           
static int ATTR_PRECEDENCE
           
 
Constructor Summary
SpringErrorsAttrProcessor()
           
 
Method Summary
 int getPrecedence()
           
 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_PRECEDENCE

public static final int ATTR_PRECEDENCE
See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

SpringErrorsAttrProcessor

public SpringErrorsAttrProcessor()
Method Detail

getPrecedence

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

processAttribute

public 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 The THYMELEAF team. All Rights Reserved.