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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intprotected static final Stringprotected AttributeDefinitionprotected static final Stringprotected AttributeDefinitionprotected static final Stringprotected AttributeDefinitionprotected static final Stringprotected static final Stringprotected AttributeDefinitionprotected static final Stringprotected AttributeDefinitionprotected static final Stringprotected static final Stringprotected static final Stringprotected AttributeDefinitionprotected static final Stringprotected static final Stringprotected AttributeDefinitionprotected static final Stringprotected AttributeDefinition -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSpringFieldTagProcessor(String dialectPrefix, String elementName, String discriminatorAttrName, String[] discriminatorAttrValues, boolean removeAttribute) -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringcomputeId(ITemplateContext context, IProcessableElementTag tag, String name, boolean sequence) protected voiddoProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) protected abstract voiddoProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IThymeleafBindStatus bindStatus, IElementTagStructureHandler structureHandler) voidsetAttributeDefinitions(AttributeDefinitions attributeDefinitions) Methods inherited from class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractElementTagProcessor
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, processMethods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setAttributeDefinitionsin interfaceIAttributeDefinitionsAware
-
doProcess
protected void doProcess(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue, IElementTagStructureHandler structureHandler) - Specified by:
doProcessin 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)
-