org.thymeleaf.spring3.dialect
Class SpringStandardDialect
Object
org.thymeleaf.dialect.AbstractDialect
org.thymeleaf.dialect.AbstractXHTMLEnabledDialect
org.thymeleaf.standard.StandardDialect
org.thymeleaf.spring3.dialect.SpringStandardDialect
- All Implemented Interfaces:
- org.thymeleaf.dialect.IDialect
public class SpringStandardDialect
- extends org.thymeleaf.standard.StandardDialect
Specialized version of StandardDialect
meant for use in Spring MVC applications.
It includes all attribute processors and features present in the
Standard Dialect (therefore all the Standard Dialect documentation is still valid for this
dialect), but establishes the following differences:
- The language used for evaluation of expressions is Spring Expression Language instead of OGNL.
- Expressions can use beans in the Spring Application Context like: $.
- New attributes for form processing:
- th:field for binding form fields to attributes in form-backing beans.
- th:errorclass for establishing a specific CSS class to a form field if errors exist for it.
- th:errors for showing form validation errors.
- Modification to th:object for using it as a form-back bean selection mechanism.
- New DTDs for validating template modes:
- XHTML 1.0 Strict : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring3-2.dtd"
- XHTML 1.0 Transitional : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml1-transitional-thymeleaf-spring3-2.dtd"
- XHTML 1.0 Frameset : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml1-frameset-thymeleaf-spring3-2.dtd"
- XHTML 1.1 : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml11-thymeleaf-spring3-2.dtd"
- Since:
- 1.0
- Author:
- Daniel Fernández
Fields inherited from class org.thymeleaf.standard.StandardDialect |
DOC_TYPE_RESOLUTION_ENTRIES, DOC_TYPE_TRANSLATIONS, EXPRESSION_EVALUATOR_EXECUTION_ATTRIBUTE, INLINER_LOCAL_VARIABLE, LENIENT, PREFIX, XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_TRANSLATION, XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_TRANSLATION, XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_TRANSLATION, XHTML1_FRAMESET_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_FRAMESET_THYMELEAF_4_DOC_TYPE_TRANSLATION, XHTML1_FRAMESET_THYMELEAF1_SYSTEMID, XHTML1_FRAMESET_THYMELEAF2_SYSTEMID, XHTML1_FRAMESET_THYMELEAF3_SYSTEMID, XHTML1_FRAMESET_THYMELEAF4_SYSTEMID, XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_TRANSLATION, XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_TRANSLATION, XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_TRANSLATION, XHTML1_STRICT_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_STRICT_THYMELEAF_4_DOC_TYPE_TRANSLATION, XHTML1_STRICT_THYMELEAF1_SYSTEMID, XHTML1_STRICT_THYMELEAF2_SYSTEMID, XHTML1_STRICT_THYMELEAF3_SYSTEMID, XHTML1_STRICT_THYMELEAF4_SYSTEMID, XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_TRANSLATION, XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_TRANSLATION, XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_TRANSLATION, XHTML1_TRANSITIONAL_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_TRANSITIONAL_THYMELEAF_4_DOC_TYPE_TRANSLATION, XHTML1_TRANSITIONAL_THYMELEAF1_SYSTEMID, XHTML1_TRANSITIONAL_THYMELEAF2_SYSTEMID, XHTML1_TRANSITIONAL_THYMELEAF3_SYSTEMID, XHTML1_TRANSITIONAL_THYMELEAF4_SYSTEMID, XHTML11_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML11_THYMELEAF_1_DOC_TYPE_TRANSLATION, XHTML11_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY, XHTML11_THYMELEAF_2_DOC_TYPE_TRANSLATION, XHTML11_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY, XHTML11_THYMELEAF_3_DOC_TYPE_TRANSLATION, XHTML11_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY, XHTML11_THYMELEAF_4_DOC_TYPE_TRANSLATION, XHTML11_THYMELEAF1_SYSTEMID, XHTML11_THYMELEAF2_SYSTEMID, XHTML11_THYMELEAF3_SYSTEMID, XHTML11_THYMELEAF4_SYSTEMID |
Methods inherited from class org.thymeleaf.standard.StandardDialect |
createStandardProcessorsSet, getAdditionalProcessors, getConversionService, getExecutionAttributes, getExpressionParser, getPrefix, getVariableExpressionEvaluator, setAdditionalProcessors, setConversionService, setExpressionParser, setVariableExpressionEvaluator |
Methods inherited from class org.thymeleaf.dialect.AbstractXHTMLEnabledDialect |
getDocTypeResolutionEntries |
Methods inherited from class org.thymeleaf.dialect.AbstractDialect |
isLenient |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XHTML1_STRICT_THYMELEAFSPRING3_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_STRICT_THYMELEAFSPRING3_1_SYSTEMID
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAFSPRING3_1_SYSTEMID
XHTML1_FRAMESET_THYMELEAFSPRING3_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_FRAMESET_THYMELEAFSPRING3_1_SYSTEMID
XHTML11_THYMELEAFSPRING3_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML11_THYMELEAFSPRING3_1_SYSTEMID
XHTML1_STRICT_THYMELEAFSPRING3_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_STRICT_THYMELEAFSPRING3_2_SYSTEMID
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAFSPRING3_2_SYSTEMID
XHTML1_FRAMESET_THYMELEAFSPRING3_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_FRAMESET_THYMELEAFSPRING3_2_SYSTEMID
XHTML11_THYMELEAFSPRING3_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML11_THYMELEAFSPRING3_2_SYSTEMID
XHTML1_STRICT_THYMELEAFSPRING3_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_STRICT_THYMELEAFSPRING3_3_SYSTEMID
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAFSPRING3_3_SYSTEMID
XHTML1_FRAMESET_THYMELEAFSPRING3_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_FRAMESET_THYMELEAFSPRING3_3_SYSTEMID
XHTML11_THYMELEAFSPRING3_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML11_THYMELEAFSPRING3_3_SYSTEMID
XHTML1_STRICT_THYMELEAFSPRING3_4_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_STRICT_THYMELEAFSPRING3_4_SYSTEMID
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_4_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAFSPRING3_4_SYSTEMID
XHTML1_FRAMESET_THYMELEAFSPRING3_4_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_FRAMESET_THYMELEAFSPRING3_4_SYSTEMID
XHTML11_THYMELEAFSPRING3_4_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML11_THYMELEAFSPRING3_4_SYSTEMID
XHTML1_STRICT_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_FRAMESET_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML11_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML11_THYMELEAFSPRING3_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_STRICT_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_FRAMESET_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML11_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML11_THYMELEAFSPRING3_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_STRICT_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_FRAMESET_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
XHTML11_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML11_THYMELEAFSPRING3_3_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_STRICT_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_TRANSITIONAL_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_FRAMESET_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
XHTML11_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML11_THYMELEAFSPRING3_4_DOC_TYPE_RESOLUTION_ENTRY
SPRING3_DOC_TYPE_RESOLUTION_ENTRIES
public static final Set<org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry> SPRING3_DOC_TYPE_RESOLUTION_ENTRIES
SPRING3_XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING3_XHTML11_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML11_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING3_XHTML11_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML11_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING3_XHTML11_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML11_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_STRICT_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_STRICT_THYMELEAF_4_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_TRANSITIONAL_THYMELEAF_4_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_FRAMESET_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_FRAMESET_THYMELEAF_4_DOC_TYPE_TRANSLATION
SPRING3_XHTML11_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML11_THYMELEAF_4_DOC_TYPE_TRANSLATION
SPRING3_DOC_TYPE_TRANSLATIONS
public static final Set<org.thymeleaf.doctype.translation.IDocTypeTranslation> SPRING3_DOC_TYPE_TRANSLATIONS
SpringStandardDialect
public SpringStandardDialect()
getDocTypeTranslations
public Set<org.thymeleaf.doctype.translation.IDocTypeTranslation> getDocTypeTranslations()
- Specified by:
getDocTypeTranslations
in interface org.thymeleaf.dialect.IDialect
- Overrides:
getDocTypeTranslations
in class org.thymeleaf.standard.StandardDialect
getAdditionalDocTypeTranslations
protected Set<org.thymeleaf.doctype.translation.IDocTypeTranslation> getAdditionalDocTypeTranslations()
- Overrides:
getAdditionalDocTypeTranslations
in class org.thymeleaf.standard.StandardDialect
getSpecificDocTypeResolutionEntries
public Set<org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry> getSpecificDocTypeResolutionEntries()
- Overrides:
getSpecificDocTypeResolutionEntries
in class org.thymeleaf.standard.StandardDialect
getAdditionalDocTypeResolutionEntries
protected Set<org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry> getAdditionalDocTypeResolutionEntries()
- Overrides:
getAdditionalDocTypeResolutionEntries
in class org.thymeleaf.standard.StandardDialect
getProcessors
public Set<org.thymeleaf.processor.IProcessor> getProcessors()
- Specified by:
getProcessors
in interface org.thymeleaf.dialect.IDialect
- Overrides:
getProcessors
in class org.thymeleaf.standard.StandardDialect
createSpringStandardProcessorsSet
public static Set<org.thymeleaf.processor.IProcessor> createSpringStandardProcessorsSet()
Create a the set of SpringStandard processors, all of them freshly instanced.
- Returns:
- the set of SpringStandard processors.
Copyright © 2013 The THYMELEAF team. All Rights Reserved.