Class VSpringTemplateEngine
java.lang.Object
org.thymeleaf.TemplateEngine
org.thymeleaf.spring6.SpringTemplateEngine
io.vertigo.ui.impl.springmvc.config.VSpringTemplateEngine
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware,org.thymeleaf.ITemplateEngine,org.thymeleaf.spring6.ISpringTemplateEngine
public class VSpringTemplateEngine
extends org.thymeleaf.spring6.SpringTemplateEngine
Extension of SpringTemplateEngine to fix addMessageResolver which is lately erased by Spring in his initializeSpecific method, use addCustomMessageResolver instead.
Also add Vertigo message resolver to permit Vertigo localization mechanism in Thymeleaf templates.
-
Field Summary
Fields inherited from class org.thymeleaf.TemplateEngine
TIMER_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomMessageResolver(org.thymeleaf.messageresolver.IMessageResolver messageResolver) protected voidMethods inherited from class org.thymeleaf.spring6.SpringTemplateEngine
addMessageResolver, getAllowedClassOverridesForViews, getEnableSpringELCompiler, getRenderHiddenMarkersBeforeCheckboxes, initializeSpecific, setAllowedClassOverridesForViews, setEnableSpringELCompiler, setMessageResolver, setMessageResolvers, setMessageSource, setRenderHiddenMarkersBeforeCheckboxes, setTemplateEngineMessageSourceMethods inherited from class org.thymeleaf.TemplateEngine
addDialect, addDialect, addLinkBuilder, addTemplateResolver, clearDialects, clearTemplateCache, clearTemplateCacheFor, getCacheManager, getConfiguration, getDecoupledTemplateLogicResolver, getDialects, getDialectsByPrefix, getEngineContextFactory, getLinkBuilders, getMessageResolvers, getTemplateResolvers, isInitialized, process, process, process, process, process, process, processThrottled, processThrottled, processThrottled, setAdditionalDialects, setCacheManager, setDecoupledTemplateLogicResolver, setDialect, setDialects, setDialectsByPrefix, setEngineContextFactory, setLinkBuilder, setLinkBuilders, setTemplateResolver, setTemplateResolvers, threadIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.thymeleaf.ITemplateEngine
getConfiguration, process, process, process, process, process, process, processThrottled, processThrottled, processThrottled
-
Constructor Details
-
VSpringTemplateEngine
public VSpringTemplateEngine()
-
-
Method Details
-
addCustomMessageResolver
public void addCustomMessageResolver(org.thymeleaf.messageresolver.IMessageResolver messageResolver) -
initializeSpringSpecific
protected void initializeSpringSpecific()- Overrides:
initializeSpringSpecificin classorg.thymeleaf.spring6.SpringTemplateEngine
-