public abstract class AbstractSpringFieldAttrProcessor
extends org.thymeleaf.processor.attr.AbstractAttrProcessor
Values for th:field attributes must be selection expressions (*{...}), as they will be evaluated on the form backing bean and not on the context variables (model attributes in Spring MVC jargon).
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_NAME |
static int |
ATTR_PRECEDENCE |
protected static String |
INPUT_TAG_NAME |
protected static String |
INPUT_TYPE_ATTR_NAME |
protected static String |
OPTION_TAG_NAME |
protected static String |
SELECT_TAG_NAME |
protected static String |
TEXTAREA_TAG_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSpringFieldAttrProcessor(String attributeName,
String hostTagName) |
protected |
AbstractSpringFieldAttrProcessor(String attributeName,
String hostTagName,
Map<String,String> hostTagAttributes) |
protected |
AbstractSpringFieldAttrProcessor(String attributeName,
String hostTagName,
String hostFilterAttributeName,
String hostFilterAttributeValue) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
computeId(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String name,
boolean sequence) |
protected abstract org.thymeleaf.processor.ProcessorResult |
doProcess(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String attributeValue,
org.springframework.web.servlet.support.BindStatus bindStatus,
Map<String,Object> localVariables) |
int |
getPrecedence() |
org.thymeleaf.processor.ProcessorResult |
processAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName) |
doProcess, getMatcherpublic static final int ATTR_PRECEDENCE
public static final String ATTR_NAME
protected static final String INPUT_TAG_NAME
protected static final String SELECT_TAG_NAME
protected static final String OPTION_TAG_NAME
protected static final String TEXTAREA_TAG_NAME
protected static final String INPUT_TYPE_ATTR_NAME
protected AbstractSpringFieldAttrProcessor(String attributeName, String hostTagName)
protected AbstractSpringFieldAttrProcessor(String attributeName, String hostTagName, String hostFilterAttributeName, String hostFilterAttributeValue)
public int getPrecedence()
getPrecedence in class org.thymeleaf.processor.AbstractProcessorpublic final org.thymeleaf.processor.ProcessorResult processAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
processAttribute in class org.thymeleaf.processor.attr.AbstractAttrProcessorprotected abstract org.thymeleaf.processor.ProcessorResult doProcess(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String attributeValue,
org.springframework.web.servlet.support.BindStatus bindStatus,
Map<String,Object> localVariables)
Copyright © 2016 The THYMELEAF team. All rights reserved.