Package org.thymeleaf.spring6.processor
Class AbstractSpringFieldTagProcessor
Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementTagProcessor
org.thymeleaf.processor.element.AbstractAttributeTagProcessor
org.thymeleaf.spring6.processor.AbstractSpringFieldTagProcessor
- All Implemented Interfaces:
IAttributeDefinitionsAware
,IElementProcessor
,IElementTagProcessor
,IProcessor
- Direct Known Subclasses:
SpringInputCheckboxFieldTagProcessor
,SpringInputFileFieldTagProcessor
,SpringInputGeneralFieldTagProcessor
,SpringInputPasswordFieldTagProcessor
,SpringInputRadioFieldTagProcessor
,SpringOptionFieldTagProcessor
,SpringSelectFieldTagProcessor
,SpringTextareaFieldTagProcessor
public abstract class AbstractSpringFieldTagProcessor
extends AbstractAttributeTagProcessor
implements IAttributeDefinitionsAware
Binds an input property with the value in the form's backing bean.
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).
- Since:
- 3.0.3
- Author:
- Daniel Fernández
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
protected static final String
protected AttributeDefinition
protected static final String
protected AttributeDefinition
protected static final String
protected AttributeDefinition
protected static final String
protected static final String
protected AttributeDefinition
protected static final String
protected AttributeDefinition
protected static final String
protected static final String
protected static final String
protected AttributeDefinition
protected static final String
protected static final String
protected AttributeDefinition
protected static final String
protected AttributeDefinition
-
Constructor Summary
ConstructorDescriptionAbstractSpringFieldTagProcessor
(String dialectPrefix, String elementName, String discriminatorAttrName, String[] discriminatorAttrValues, boolean removeAttribute) -
Method Summary
Modifier and TypeMethodDescriptionprotected final String
computeId
(ITemplateContext context, IProcessableElementTag tag, String name, boolean sequence) protected void
doProcess
(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) protected abstract void
doProcess
(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IThymeleafBindStatus bindStatus, IElementTagStructureHandler structureHandler) void
setAttributeDefinitions
(AttributeDefinitions attributeDefinitions) Methods inherited from class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
doProcess
Methods inherited from class org.thymeleaf.processor.element.AbstractElementTagProcessor
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, process
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateMode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
Field Details
-
ATTR_PRECEDENCE
public static final int ATTR_PRECEDENCE- See Also:
-
ATTR_NAME
- See Also:
-
INPUT_TAG_NAME
- See Also:
-
SELECT_TAG_NAME
- See Also:
-
OPTION_TAG_NAME
- See Also:
-
TEXTAREA_TAG_NAME
- See Also:
-
ID_ATTR_NAME
- See Also:
-
TYPE_ATTR_NAME
- See Also:
-
NAME_ATTR_NAME
- See Also:
-
VALUE_ATTR_NAME
- See Also:
-
CHECKED_ATTR_NAME
- See Also:
-
SELECTED_ATTR_NAME
- See Also:
-
DISABLED_ATTR_NAME
- See Also:
-
MULTIPLE_ATTR_NAME
- See Also:
-
idAttributeDefinition
-
typeAttributeDefinition
-
nameAttributeDefinition
-
valueAttributeDefinition
-
checkedAttributeDefinition
-
selectedAttributeDefinition
-
disabledAttributeDefinition
-
multipleAttributeDefinition
-
-
Constructor Details
-
AbstractSpringFieldTagProcessor
-
-
Method Details
-
setAttributeDefinitions
- Specified by:
setAttributeDefinitions
in interfaceIAttributeDefinitionsAware
-
doProcess
protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) - Specified by:
doProcess
in classAbstractAttributeTagProcessor
-
doProcess
protected abstract void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IThymeleafBindStatus bindStatus, IElementTagStructureHandler structureHandler) -
computeId
protected final String computeId(ITemplateContext context, IProcessableElementTag tag, String name, boolean sequence)
-