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
- Direct Known Subclasses:
- SpringThymeleafDialect
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-spring3-1.dtd"
- XHTML 1.0 Transitional : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml1-transitional-thymeleaf-spring3-1.dtd"
- XHTML 1.0 Frameset : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml1-frameset-thymeleaf-spring3-1.dtd"
- XHTML 1.1 : SYSTEMID "http://www.thymeleaf.org/dtd/xhtml11-thymeleaf-spring3-1.dtd"
- Since:
- 1.0
- Author:
- Daniel Fernández
Fields inherited from class org.thymeleaf.standard.StandardDialect |
DOC_TYPE_RESOLUTION_ENTRIES, DOC_TYPE_TRANSLATIONS, LENIENT, PREFIX, XHTML1_FRAMESET_DOC_TYPE_TRANSLATION, XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_FRAMESET_THYMELEAF1_SYSTEMID, XHTML1_STRICT_DOC_TYPE_TRANSLATION, XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_STRICT_THYMELEAF1_SYSTEMID, XHTML1_TRANSITIONAL_DOC_TYPE_TRANSLATION, XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML1_TRANSITIONAL_THYMELEAF1_SYSTEMID, XHTML11_DOC_TYPE_TRANSLATION, XHTML11_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY, XHTML11_THYMELEAF1_SYSTEMID |
Methods inherited from class org.thymeleaf.standard.StandardDialect |
createStandardAttrProcessorsSet, createStandardTagProcessorsSet, createStandardValueProcessorsSet, getAdditionalTagProcessors, getAdditionalValueProcessors, getAttrProcessors, getPrefix, getRemovedTagProcessors, getRemovedValueProcessors, getTagProcessors, isLenient |
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_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_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
SPRING3_DOC_TYPE_RESOLUTION_ENTRIES
public static final Set<org.thymeleaf.doctype.resolution.IDocTypeResolutionEntry> SPRING3_DOC_TYPE_RESOLUTION_ENTRIES
SPRING3_XHTML1_STRICT_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_STRICT_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_TRANSITIONAL_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_TRANSITIONAL_DOC_TYPE_TRANSLATION
SPRING3_XHTML1_FRAMESET_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML1_FRAMESET_DOC_TYPE_TRANSLATION
SPRING3_XHTML11_DOC_TYPE_TRANSLATION
public static final org.thymeleaf.doctype.translation.IDocTypeTranslation SPRING3_XHTML11_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
getAdditionalAttrProcessors
protected Set<org.thymeleaf.processor.attr.IAttrProcessor> getAdditionalAttrProcessors()
- Overrides:
getAdditionalAttrProcessors
in class org.thymeleaf.standard.StandardDialect
getRemovedAttrProcessors
protected Set<Class<? extends org.thymeleaf.processor.attr.IAttrProcessor>> getRemovedAttrProcessors()
- Overrides:
getRemovedAttrProcessors
in class org.thymeleaf.standard.StandardDialect
getValueProcessors
public Set<org.thymeleaf.processor.value.IValueProcessor> getValueProcessors()
- Specified by:
getValueProcessors
in interface org.thymeleaf.dialect.IDialect
- Overrides:
getValueProcessors
in class org.thymeleaf.standard.StandardDialect
createSpringStandardValueProcessorsSet
public static Set<org.thymeleaf.processor.value.IValueProcessor> createSpringStandardValueProcessorsSet()
Copyright © 2011 The THYMELEAF team. All Rights Reserved.