public abstract class AbstractSpringFieldTagProcessor
extends org.thymeleaf.processor.element.AbstractAttributeTagProcessor
implements org.thymeleaf.engine.IAttributeDefinitionsAware
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 |
CHECKED_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
checkedAttributeDefinition |
protected static String |
DISABLED_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
disabledAttributeDefinition |
protected static String |
ID_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
idAttributeDefinition |
protected static String |
INPUT_TAG_NAME |
protected static String |
MULTIPLE_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
multipleAttributeDefinition |
protected static String |
NAME_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
nameAttributeDefinition |
protected static String |
OPTION_TAG_NAME |
protected static String |
SELECT_TAG_NAME |
protected static String |
SELECTED_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
selectedAttributeDefinition |
protected static String |
TEXTAREA_TAG_NAME |
protected static String |
TYPE_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
typeAttributeDefinition |
protected static String |
VALUE_ATTR_NAME |
protected org.thymeleaf.engine.AttributeDefinition |
valueAttributeDefinition |
Constructor and Description |
---|
AbstractSpringFieldTagProcessor(String dialectPrefix,
String elementName,
String discriminatorAttrName,
String[] discriminatorAttrValues,
boolean removeAttribute) |
Modifier and Type | Method and Description |
---|---|
protected String |
computeId(org.thymeleaf.context.ITemplateContext context,
org.thymeleaf.model.IProcessableElementTag tag,
String name,
boolean sequence) |
protected void |
doProcess(org.thymeleaf.context.ITemplateContext context,
org.thymeleaf.model.IProcessableElementTag tag,
org.thymeleaf.engine.AttributeName attributeName,
String attributeValue,
org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler) |
protected abstract void |
doProcess(org.thymeleaf.context.ITemplateContext context,
org.thymeleaf.model.IProcessableElementTag tag,
org.thymeleaf.engine.AttributeName attributeName,
String attributeValue,
IThymeleafBindStatus bindStatus,
org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler) |
void |
setAttributeDefinitions(org.thymeleaf.engine.AttributeDefinitions attributeDefinitions) |
doProcess
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, process
getPrecedence, getTemplateMode
public 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 ID_ATTR_NAME
protected static final String TYPE_ATTR_NAME
protected static final String NAME_ATTR_NAME
protected static final String VALUE_ATTR_NAME
protected static final String CHECKED_ATTR_NAME
protected static final String SELECTED_ATTR_NAME
protected static final String DISABLED_ATTR_NAME
protected static final String MULTIPLE_ATTR_NAME
protected org.thymeleaf.engine.AttributeDefinition idAttributeDefinition
protected org.thymeleaf.engine.AttributeDefinition typeAttributeDefinition
protected org.thymeleaf.engine.AttributeDefinition nameAttributeDefinition
protected org.thymeleaf.engine.AttributeDefinition valueAttributeDefinition
protected org.thymeleaf.engine.AttributeDefinition checkedAttributeDefinition
protected org.thymeleaf.engine.AttributeDefinition selectedAttributeDefinition
protected org.thymeleaf.engine.AttributeDefinition disabledAttributeDefinition
protected org.thymeleaf.engine.AttributeDefinition multipleAttributeDefinition
public void setAttributeDefinitions(org.thymeleaf.engine.AttributeDefinitions attributeDefinitions)
setAttributeDefinitions
in interface org.thymeleaf.engine.IAttributeDefinitionsAware
protected void doProcess(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler)
doProcess
in class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
protected abstract void doProcess(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, IThymeleafBindStatus bindStatus, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler)
Copyright © 2017 The THYMELEAF team. All rights reserved.