org.thymeleaf.spring4.dialect
Class SpringStandardDialect
Object
org.thymeleaf.dialect.AbstractDialect
org.thymeleaf.dialect.AbstractXHTMLEnabledDialect
org.thymeleaf.standard.StandardDialect
org.thymeleaf.spring4.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 an object called #beans to access beans in the Application
Context: ${beans.myBean.doSomething()}.
- New attributes for form processing:
- th:field for binding form fields to attributes in form-backing beans.
- 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-spring4-2.dtd"
- XHTML 1.0 Transitional : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml1-transitional-thymeleaf-spring4-2.dtd"
- XHTML 1.0 Frameset : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml1-frameset-thymeleaf-spring4-2.dtd"
- XHTML 1.1 : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml11-thymeleaf-spring4-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_THYMELEAF1_SYSTEMID, XHTML1_FRAMESET_THYMELEAF2_SYSTEMID, XHTML1_FRAMESET_THYMELEAF3_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_THYMELEAF1_SYSTEMID, XHTML1_STRICT_THYMELEAF2_SYSTEMID, XHTML1_STRICT_THYMELEAF3_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_THYMELEAF1_SYSTEMID, XHTML1_TRANSITIONAL_THYMELEAF2_SYSTEMID, XHTML1_TRANSITIONAL_THYMELEAF3_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_THYMELEAF1_SYSTEMID, XHTML11_THYMELEAF2_SYSTEMID, XHTML11_THYMELEAF3_SYSTEMID |
Methods inherited from class org.thymeleaf.standard.StandardDialect |
createStandardProcessorsSet, externalAdditionalProcessors, getAdditionalProcessors, getPrefix, getRemovedProcessors, isLenient, setAdditionalProcessors |
Methods inherited from class org.thymeleaf.dialect.AbstractXHTMLEnabledDialect |
getDocTypeResolutionEntries |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XHTML1_STRICT_THYMELEAFSPRING4_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_STRICT_THYMELEAFSPRING4_1_SYSTEMID
XHTML1_TRANSITIONAL_THYMELEAFSPRING4_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAFSPRING4_1_SYSTEMID
XHTML1_FRAMESET_THYMELEAFSPRING4_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_FRAMESET_THYMELEAFSPRING4_1_SYSTEMID
XHTML11_THYMELEAFSPRING4_1_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML11_THYMELEAFSPRING4_1_SYSTEMID
XHTML1_STRICT_THYMELEAFSPRING4_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_STRICT_THYMELEAFSPRING4_2_SYSTEMID
XHTML1_TRANSITIONAL_THYMELEAFSPRING4_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAFSPRING4_2_SYSTEMID
XHTML1_FRAMESET_THYMELEAFSPRING4_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_FRAMESET_THYMELEAFSPRING4_2_SYSTEMID
XHTML11_THYMELEAFSPRING4_2_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML11_THYMELEAFSPRING4_2_SYSTEMID
XHTML1_STRICT_THYMELEAFSPRING4_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_STRICT_THYMELEAFSPRING4_3_SYSTEMID
XHTML1_TRANSITIONAL_THYMELEAFSPRING4_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAFSPRING4_3_SYSTEMID
XHTML1_FRAMESET_THYMELEAFSPRING4_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML1_FRAMESET_THYMELEAFSPRING4_3_SYSTEMID
XHTML11_THYMELEAFSPRING4_3_SYSTEMID
public static final org.thymeleaf.doctype.DocTypeIdentifier XHTML11_THYMELEAFSPRING4_3_SYSTEMID
XHTML1_STRICT_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_TRANSITIONAL_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_FRAMESET_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML11_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML11_THYMELEAFSPRING4_1_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_STRICT_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_TRANSITIONAL_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_FRAMESET_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML11_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML11_THYMELEAFSPRING4_2_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_STRICT_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_TRANSITIONAL_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
XHTML1_FRAMESET_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
XHTML11_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
public static final org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry XHTML11_THYMELEAFSPRING4_3_DOC_TYPE_RESOLUTION_ENTRY
SPRING4_DOC_TYPE_RESOLUTION_ENTRIES
public static final Set<org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry> SPRING4_DOC_TYPE_RESOLUTION_ENTRIES
SPRING4_XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING4_XHTML11_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML11_THYMELEAF_1_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING4_XHTML11_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML11_THYMELEAF_2_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING4_XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING4_XHTML11_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING4_XHTML11_THYMELEAF_3_DOC_TYPE_TRANSLATION
SPRING4_DOC_TYPE_TRANSLATIONS
public static final Set<org.thymeleaf.doctype.translation.IDocTypeTranslation> SPRING4_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.
getExecutionAttributes
public Map<String,Object> getExecutionAttributes()
- Specified by:
getExecutionAttributes
in interface org.thymeleaf.dialect.IDialect
- Overrides:
getExecutionAttributes
in class org.thymeleaf.standard.StandardDialect
Copyright © 2013 The THYMELEAF team. All Rights Reserved.